!function(D,F){"object"==typeof exports&&typeof module<"u"?F(exports):"function"==typeof define&&define.amd?define(["exports"],F):F((D=typeof globalThis<"u"?globalThis:D||self)["lottie-player"]={})}(this,function(exports){"use strict";function _asyncIterator(D){var F,B,O,G=2;for(typeof Symbol<"u"&&(B=Symbol.asyncIterator,O=Symbol.iterator);G--;){if(B&&null!=(F=D[B]))return F.call(D);if(O&&null!=(F=D[O]))return new AsyncFromSyncIterator(F.call(D));B="@@asyncIterator",O="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(D){function F(B){if(Object(B)!==B)return Promise.reject(new TypeError(B+" is not an object."));var O=B.done;return Promise.resolve(B.value).then(function(G){return{value:G,done:O}})}return(AsyncFromSyncIterator=function(B){this.s=B,this.n=B.next}).prototype={s:null,n:null,next:function(){return F(this.n.apply(this.s,arguments))},return:function(B){var O=this.s.return;return void 0===O?Promise.resolve({value:B,done:!0}):F(O.apply(this.s,arguments))},throw:function(B){var O=this.s.return;return void 0===O?Promise.reject(B):F(O.apply(this.s,arguments))}},new AsyncFromSyncIterator(D)}var REACT_ELEMENT_TYPE;function _jsx(D,F,B,O){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var G=D&&D.defaultProps,j=arguments.length-3;if(F||0===j||(F={children:void 0}),1===j)F.children=O;else if(j>1){for(var q=new Array(j),W=0;W<j;W++)q[W]=arguments[W+3];F.children=q}if(F&&G)for(var Z in G)void 0===F[Z]&&(F[Z]=G[Z]);else F||(F=G||{});return{$$typeof:REACT_ELEMENT_TYPE,type:D,key:void 0===B?null:""+B,ref:null,props:F,_owner:null}}function ownKeys(D,F){var B=Object.keys(D);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(D);F&&(O=O.filter(function(G){return Object.getOwnPropertyDescriptor(D,G).enumerable})),B.push.apply(B,O)}return B}function _objectSpread2(D){for(var F=1;F<arguments.length;F++){var B=null!=arguments[F]?arguments[F]:{};F%2?ownKeys(Object(B),!0).forEach(function(O){_defineProperty(D,O,B[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(B)):ownKeys(Object(B)).forEach(function(O){Object.defineProperty(D,O,Object.getOwnPropertyDescriptor(B,O))})}return D}function _typeof(D){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}function _wrapRegExp(){_wrapRegExp=function(G,j){return new B(G,void 0,j)};var D=RegExp.prototype,F=new WeakMap;function B(G,j,q){var W=new RegExp(G,j);return F.set(W,q||F.get(G)),_setPrototypeOf(W,B.prototype)}function O(G,j){var q=F.get(j);return Object.keys(q).reduce(function(W,Z){return W[Z]=G[q[Z]],W},Object.create(null))}return _inherits(B,RegExp),B.prototype.exec=function(G){var j=D.exec.call(this,G);return j&&(j.groups=O(j,this)),j},B.prototype[Symbol.replace]=function(G,j){if("string"==typeof j){var q=F.get(this);return D[Symbol.replace].call(this,G,j.replace(/\$<([^>]+)>/g,function(Z,rt){return"$"+q[rt]}))}if("function"==typeof j){var W=this;return D[Symbol.replace].call(this,G,function(){var Z=arguments;return"object"!=typeof Z[Z.length-1]&&(Z=[].slice.call(Z)).push(O(Z,W)),j.apply(this,Z)})}return D[Symbol.replace].call(this,G,j)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(D){this.wrapped=D}function _AsyncGenerator(D){var F,B;function O(j,q){try{var W=D[j](q),Z=W.value,rt=Z instanceof _AwaitValue;Promise.resolve(rt?Z.wrapped:Z).then(function(Y){rt?O("return"===j?"return":"next",Y):G(W.done?"return":"normal",Y)},function(Y){O("throw",Y)})}catch(Y){G("throw",Y)}}function G(j,q){switch(j){case"return":F.resolve({value:q,done:!0});break;case"throw":F.reject(q);break;default:F.resolve({value:q,done:!1})}(F=F.next)?O(F.key,F.arg):B=null}this._invoke=function(j,q){return new Promise(function(W,Z){var rt={key:j,arg:q,resolve:W,reject:Z,next:null};B?B=B.next=rt:(F=B=rt,O(j,q))})},"function"!=typeof D.return&&(this.return=void 0)}function _wrapAsyncGenerator(D){return function(){return new _AsyncGenerator(D.apply(this,arguments))}}function _awaitAsyncGenerator(D){return new _AwaitValue(D)}function _asyncGeneratorDelegate(D,F){var B={},O=!1;function G(j,q){return O=!0,q=new Promise(function(W){W(D[j](q))}),{done:!1,value:F(q)}}return B[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},B.next=function(j){return O?(O=!1,j):G("next",j)},"function"==typeof D.throw&&(B.throw=function(j){if(O)throw O=!1,j;return G("throw",j)}),"function"==typeof D.return&&(B.return=function(j){return O?(O=!1,j):G("return",j)}),B}function asyncGeneratorStep(D,F,B,O,G,j,q){try{var W=D[j](q),Z=W.value}catch(rt){return void B(rt)}W.done?F(Z):Promise.resolve(Z).then(O,G)}function _asyncToGenerator(D){return function(){var F=this,B=arguments;return new Promise(function(O,G){var j=D.apply(F,B);function q(Z){asyncGeneratorStep(j,O,G,q,W,"next",Z)}function W(Z){asyncGeneratorStep(j,O,G,q,W,"throw",Z)}q(void 0)})}}function _classCallCheck(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}function _defineProperties(D,F){for(var B=0;B<F.length;B++){var O=F[B];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,O.key,O)}}function _createClass(D,F,B){return F&&_defineProperties(D.prototype,F),B&&_defineProperties(D,B),Object.defineProperty(D,"prototype",{writable:!1}),D}function _defineEnumerableProperties(D,F){for(var B in F)(j=F[B]).configurable=j.enumerable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,B,j);if(Object.getOwnPropertySymbols)for(var O=Object.getOwnPropertySymbols(F),G=0;G<O.length;G++){var j,q=O[G];(j=F[q]).configurable=j.enumerable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,q,j)}return D}function _defaults(D,F){for(var B=Object.getOwnPropertyNames(F),O=0;O<B.length;O++){var G=B[O],j=Object.getOwnPropertyDescriptor(F,G);j&&j.configurable&&void 0===D[G]&&Object.defineProperty(D,G,j)}return D}function _defineProperty(D,F,B){return F in D?Object.defineProperty(D,F,{value:B,enumerable:!0,configurable:!0,writable:!0}):D[F]=B,D}function _extends(){return _extends=Object.assign||function(D){for(var F=1;F<arguments.length;F++){var B=arguments[F];for(var O in B)Object.prototype.hasOwnProperty.call(B,O)&&(D[O]=B[O])}return D},_extends.apply(this,arguments)}function _objectSpread(D){for(var F=1;F<arguments.length;F++){var B=null!=arguments[F]?Object(arguments[F]):{},O=Object.keys(B);"function"==typeof Object.getOwnPropertySymbols&&O.push.apply(O,Object.getOwnPropertySymbols(B).filter(function(G){return Object.getOwnPropertyDescriptor(B,G).enumerable})),O.forEach(function(G){_defineProperty(D,G,B[G])})}return D}function _inherits(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&_setPrototypeOf(D,F)}function _inheritsLoose(D,F){D.prototype=Object.create(F.prototype),D.prototype.constructor=D,_setPrototypeOf(D,F)}function _getPrototypeOf(D){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)})(D)}function _setPrototypeOf(D,F){return(_setPrototypeOf=Object.setPrototypeOf||function(B,O){return B.__proto__=O,B})(D,F)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(D,F,B){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(O,G,j){var q=[null];q.push.apply(q,G);var W=new(Function.bind.apply(O,q));return j&&_setPrototypeOf(W,j.prototype),W}).apply(null,arguments)}function _isNativeFunction(D){return-1!==Function.toString.call(D).indexOf("[native code]")}function _wrapNativeSuper(D){var F="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(B){if(null===B||!_isNativeFunction(B))return B;if("function"!=typeof B)throw new TypeError("Super expression must either be null or a function");if(void 0!==F){if(F.has(B))return F.get(B);F.set(B,O)}function O(){return _construct(B,arguments,_getPrototypeOf(this).constructor)}return O.prototype=Object.create(B.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(O,B)},_wrapNativeSuper(D)}function _instanceof(D,F){return null!=F&&typeof Symbol<"u"&&F[Symbol.hasInstance]?!!F[Symbol.hasInstance](D):D instanceof F}function _interopRequireDefault(D){return D&&D.__esModule?D:{default:D}}function _getRequireWildcardCache(D){if("function"!=typeof WeakMap)return null;var F=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function(O){return O?B:F})(D)}function _interopRequireWildcard(D,F){if(!F&&D&&D.__esModule)return D;if(null===D||"object"!=typeof D&&"function"!=typeof D)return{default:D};var B=_getRequireWildcardCache(F);if(B&&B.has(D))return B.get(D);var O={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in D)if("default"!==j&&Object.prototype.hasOwnProperty.call(D,j)){var q=G?Object.getOwnPropertyDescriptor(D,j):null;q&&(q.get||q.set)?Object.defineProperty(O,j,q):O[j]=D[j]}return O.default=D,B&&B.set(D,O),O}function _newArrowCheck(D,F){if(D!==F)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty(D){if(null==D)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(D,F){if(null==D)return{};var B,O,G={},j=Object.keys(D);for(O=0;O<j.length;O++)F.indexOf(B=j[O])>=0||(G[B]=D[B]);return G}function _objectWithoutProperties(D,F){if(null==D)return{};var B,O,G=_objectWithoutPropertiesLoose(D,F);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(D);for(O=0;O<j.length;O++)F.indexOf(B=j[O])>=0||Object.prototype.propertyIsEnumerable.call(D,B)&&(G[B]=D[B])}return G}function _assertThisInitialized(D){if(void 0===D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function _possibleConstructorReturn(D,F){if(F&&("object"==typeof F||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(D)}function _createSuper(D){var F=_isNativeReflectConstruct();return function(){var B,O=_getPrototypeOf(D);if(F){var G=_getPrototypeOf(this).constructor;B=Reflect.construct(O,arguments,G)}else B=O.apply(this,arguments);return _possibleConstructorReturn(this,B)}}function _superPropBase(D,F){for(;!Object.prototype.hasOwnProperty.call(D,F)&&null!==(D=_getPrototypeOf(D)););return D}function _get(){return _get=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(D,F,B){var O=_superPropBase(D,F);if(O){var G=Object.getOwnPropertyDescriptor(O,F);return G.get?G.get.call(arguments.length<3?D:B):G.value}},_get.apply(this,arguments)}function set(D,F,B,O){return(set=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(G,j,q,W){var Z,rt=_superPropBase(G,j);if(rt){if((Z=Object.getOwnPropertyDescriptor(rt,j)).set)return Z.set.call(W,q),!0;if(!Z.writable)return!1}if(Z=Object.getOwnPropertyDescriptor(W,j)){if(!Z.writable)return!1;Z.value=q,Object.defineProperty(W,j,Z)}else _defineProperty(W,j,q);return!0})(D,F,B,O)}function _set(D,F,B,O,G){if(!set(D,F,B,O||D)&&G)throw new Error("failed to set property");return B}function _taggedTemplateLiteral(D,F){return F||(F=D.slice(0)),Object.freeze(Object.defineProperties(D,{raw:{value:Object.freeze(F)}}))}function _taggedTemplateLiteralLoose(D,F){return F||(F=D.slice(0)),D.raw=F,D}function _readOnlyError(D){throw new TypeError('"'+D+'" is read-only')}function _writeOnlyError(D){throw new TypeError('"'+D+'" is write-only')}function _classNameTDZError(D){throw new Error('Class "'+D+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(D){throw new ReferenceError(D+" is not defined - temporal dead zone")}function _temporalRef(D,F){return D===_temporalUndefined?_tdz(F):D}function _slicedToArray(D,F){return _arrayWithHoles(D)||_iterableToArrayLimit(D,F)||_unsupportedIterableToArray(D,F)||_nonIterableRest()}function _slicedToArrayLoose(D,F){return _arrayWithHoles(D)||_iterableToArrayLimitLoose(D,F)||_unsupportedIterableToArray(D,F)||_nonIterableRest()}function _toArray(D){return _arrayWithHoles(D)||_iterableToArray(D)||_unsupportedIterableToArray(D)||_nonIterableRest()}function _toConsumableArray(D){return _arrayWithoutHoles(D)||_iterableToArray(D)||_unsupportedIterableToArray(D)||_nonIterableSpread()}function _arrayWithoutHoles(D){if(Array.isArray(D))return _arrayLikeToArray(D)}function _arrayWithHoles(D){if(Array.isArray(D))return D}function _maybeArrayLike(D,F,B){if(F&&!Array.isArray(F)&&"number"==typeof F.length){var O=F.length;return _arrayLikeToArray(F,void 0!==B&&B<O?B:O)}return D(F,B)}function _iterableToArray(D){if(typeof Symbol<"u"&&null!=D[Symbol.iterator]||null!=D["@@iterator"])return Array.from(D)}function _iterableToArrayLimit(D,F){var B=null==D?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(null!=B){var O,G,j=[],q=!0,W=!1;try{for(B=B.call(D);!(q=(O=B.next()).done)&&(j.push(O.value),!F||j.length!==F);q=!0);}catch(Z){W=!0,G=Z}finally{try{q||null==B.return||B.return()}finally{if(W)throw G}}return j}}function _iterableToArrayLimitLoose(D,F){var B=D&&(typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"]);if(null!=B){var O=[];for(B=B.call(D),_step;!(_step=B.next()).done&&(O.push(_step.value),!F||O.length!==F););return O}}function _unsupportedIterableToArray(D,F){if(D){if("string"==typeof D)return _arrayLikeToArray(D,F);var B=Object.prototype.toString.call(D).slice(8,-1);return"Object"===B&&D.constructor&&(B=D.constructor.name),"Map"===B||"Set"===B?Array.from(D):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?_arrayLikeToArray(D,F):void 0}}function _arrayLikeToArray(D,F){(null==F||F>D.length)&&(F=D.length);for(var B=0,O=new Array(F);B<F;B++)O[B]=D[B];return O}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(D,F){var B=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!B){if(Array.isArray(D)||(B=_unsupportedIterableToArray(D))||F&&D&&"number"==typeof D.length){B&&(D=B);var O=0,G=function(){};return{s:G,n:function(){return O>=D.length?{done:!0}:{done:!1,value:D[O++]}},e:function(Z){throw Z},f:G}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var j,q=!0,W=!1;return{s:function(){B=B.call(D)},n:function(){var Z=B.next();return q=Z.done,Z},e:function(Z){W=!0,j=Z},f:function(){try{q||null==B.return||B.return()}finally{if(W)throw j}}}}function _createForOfIteratorHelperLoose(D,F){var B=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(B)return(B=B.call(D)).next.bind(B);if(Array.isArray(D)||(B=_unsupportedIterableToArray(D))||F&&D&&"number"==typeof D.length){B&&(D=B);var O=0;return function(){return O>=D.length?{done:!0}:{done:!1,value:D[O++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _skipFirstGeneratorNext(D){return function(){var F=D.apply(this,arguments);return F.next(),F}}function _toPrimitive(D,F){if("object"!=typeof D||null===D)return D;var B=D[Symbol.toPrimitive];if(void 0!==B){var O=B.call(D,F||"default");if("object"!=typeof O)return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}function _toPropertyKey(D){var F=_toPrimitive(D,"string");return"symbol"==typeof F?F:String(F)}function _initializerWarningHelper(D,F){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(D,F,B,O){B&&Object.defineProperty(D,F,{enumerable:B.enumerable,configurable:B.configurable,writable:B.writable,value:B.initializer?B.initializer.call(O):void 0})}function _applyDecoratedDescriptor(D,F,B,O,G){var j={};return Object.keys(O).forEach(function(q){j[q]=O[q]}),j.enumerable=!!j.enumerable,j.configurable=!!j.configurable,("value"in j||j.initializer)&&(j.writable=!0),j=B.slice().reverse().reduce(function(q,W){return W(D,F,q)||q},j),G&&void 0!==j.initializer&&(j.value=j.initializer?j.initializer.call(G):void 0,j.initializer=void 0),void 0===j.initializer&&(Object.defineProperty(D,F,j),j=null),j}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_AsyncGenerator.prototype.next=function(D){return this._invoke("next",D)},_AsyncGenerator.prototype.throw=function(D){return this._invoke("throw",D)},_AsyncGenerator.prototype.return=function(D){return this._invoke("return",D)};var id=0;function _classPrivateFieldLooseKey(D){return"__private_"+id+++"_"+D}function _classPrivateFieldLooseBase(D,F){if(!Object.prototype.hasOwnProperty.call(D,F))throw new TypeError("attempted to use private field on non-instance");return D}function _classPrivateFieldGet(D,F){return _classApplyDescriptorGet(D,_classExtractFieldDescriptor(D,F,"get"))}function _classPrivateFieldSet(D,F,B){return _classApplyDescriptorSet(D,_classExtractFieldDescriptor(D,F,"set"),B),B}function _classPrivateFieldDestructureSet(D,F){return _classApplyDescriptorDestructureSet(D,_classExtractFieldDescriptor(D,F,"set"))}function _classExtractFieldDescriptor(D,F,B){if(!F.has(D))throw new TypeError("attempted to "+B+" private field on non-instance");return F.get(D)}function _classStaticPrivateFieldSpecGet(D,F,B){return _classCheckPrivateStaticAccess(D,F),_classCheckPrivateStaticFieldDescriptor(B,"get"),_classApplyDescriptorGet(D,B)}function _classStaticPrivateFieldSpecSet(D,F,B,O){return _classCheckPrivateStaticAccess(D,F),_classCheckPrivateStaticFieldDescriptor(B,"set"),_classApplyDescriptorSet(D,B,O),O}function _classStaticPrivateMethodGet(D,F,B){return _classCheckPrivateStaticAccess(D,F),B}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(D,F){return F.get?F.get.call(D):F.value}function _classApplyDescriptorSet(D,F,B){if(F.set)F.set.call(D,B);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=B}}function _classApplyDescriptorDestructureSet(D,F){if(F.set)return"__destrObj"in F||(F.__destrObj={set value(B){F.set.call(D,B)}}),F.__destrObj;if(!F.writable)throw new TypeError("attempted to set read only private field");return F}function _classStaticPrivateFieldDestructureSet(D,F,B){return _classCheckPrivateStaticAccess(D,F),_classCheckPrivateStaticFieldDescriptor(B,"set"),_classApplyDescriptorDestructureSet(D,B)}function _classCheckPrivateStaticAccess(D,F){if(D!==F)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(D,F){if(void 0===D)throw new TypeError("attempted to "+F+" private static field before its declaration")}function _decorate(D,F,B,O){var G=_getDecoratorsApi();if(O)for(var j=0;j<O.length;j++)G=O[j](G);var q=F(function(Z){G.initializeInstanceElements(Z,W.elements)},B),W=G.decorateClass(_coalesceClassElements(q.d.map(_createElementDescriptor)),D);return G.initializeClassElements(q.F,W.elements),G.runClassFinishers(q.F,W.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return D};var D={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(F,B){["method","field"].forEach(function(O){B.forEach(function(G){G.kind===O&&"own"===G.placement&&this.defineClassElement(F,G)},this)},this)},initializeClassElements:function(F,B){var O=F.prototype;["method","field"].forEach(function(G){B.forEach(function(j){var q=j.placement;j.kind!==G||"static"!==q&&"prototype"!==q||this.defineClassElement("static"===q?F:O,j)},this)},this)},defineClassElement:function(F,B){var O=B.descriptor;if("field"===B.kind){var G=B.initializer;O={enumerable:O.enumerable,writable:O.writable,configurable:O.configurable,value:void 0===G?void 0:G.call(F)}}Object.defineProperty(F,B.key,O)},decorateClass:function(F,B){var O=[],G=[],j={static:[],prototype:[],own:[]};if(F.forEach(function(W){this.addElementPlacement(W,j)},this),F.forEach(function(W){if(!_hasDecorators(W))return O.push(W);var Z=this.decorateElement(W,j);O.push(Z.element),O.push.apply(O,Z.extras),G.push.apply(G,Z.finishers)},this),!B)return{elements:O,finishers:G};var q=this.decorateConstructor(O,B);return G.push.apply(G,q.finishers),q.finishers=G,q},addElementPlacement:function(F,B,O){var G=B[F.placement];if(!O&&-1!==G.indexOf(F.key))throw new TypeError("Duplicated element ("+F.key+")");G.push(F.key)},decorateElement:function(F,B){for(var O=[],G=[],j=F.decorators,q=j.length-1;q>=0;q--){var W=B[F.placement];W.splice(W.indexOf(F.key),1);var Z=this.fromElementDescriptor(F),rt=this.toElementFinisherExtras((0,j[q])(Z)||Z);this.addElementPlacement(F=rt.element,B),rt.finisher&&G.push(rt.finisher);var Y=rt.extras;if(Y){for(var K=0;K<Y.length;K++)this.addElementPlacement(Y[K],B);O.push.apply(O,Y)}}return{element:F,finishers:G,extras:O}},decorateConstructor:function(F,B){for(var O=[],G=B.length-1;G>=0;G--){var j=this.fromClassDescriptor(F),q=this.toClassDescriptor((0,B[G])(j)||j);if(void 0!==q.finisher&&O.push(q.finisher),void 0!==q.elements){F=q.elements;for(var W=0;W<F.length-1;W++)for(var Z=W+1;Z<F.length;Z++)if(F[W].key===F[Z].key&&F[W].placement===F[Z].placement)throw new TypeError("Duplicated element ("+F[W].key+")")}}return{elements:F,finishers:O}},fromElementDescriptor:function(F){var B={kind:F.kind,key:F.key,placement:F.placement,descriptor:F.descriptor};return Object.defineProperty(B,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===F.kind&&(B.initializer=F.initializer),B},toElementDescriptors:function(F){if(void 0!==F)return _toArray(F).map(function(B){var O=this.toElementDescriptor(B);return this.disallowProperty(B,"finisher","An element descriptor"),this.disallowProperty(B,"extras","An element descriptor"),O},this)},toElementDescriptor:function(F){var B=String(F.kind);if("method"!==B&&"field"!==B)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+B+'"');var O=_toPropertyKey(F.key),G=String(F.placement);if("static"!==G&&"prototype"!==G&&"own"!==G)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+G+'"');var j=F.descriptor;this.disallowProperty(F,"elements","An element descriptor");var q={kind:B,key:O,placement:G,descriptor:Object.assign({},j)};return"field"!==B?this.disallowProperty(F,"initializer","A method descriptor"):(this.disallowProperty(j,"get","The property descriptor of a field descriptor"),this.disallowProperty(j,"set","The property descriptor of a field descriptor"),this.disallowProperty(j,"value","The property descriptor of a field descriptor"),q.initializer=F.initializer),q},toElementFinisherExtras:function(F){return{element:this.toElementDescriptor(F),finisher:_optionalCallableProperty(F,"finisher"),extras:this.toElementDescriptors(F.extras)}},fromClassDescriptor:function(F){var B={kind:"class",elements:F.map(this.fromElementDescriptor,this)};return Object.defineProperty(B,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),B},toClassDescriptor:function(F){var B=String(F.kind);if("class"!==B)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+B+'"');this.disallowProperty(F,"key","A class descriptor"),this.disallowProperty(F,"placement","A class descriptor"),this.disallowProperty(F,"descriptor","A class descriptor"),this.disallowProperty(F,"initializer","A class descriptor"),this.disallowProperty(F,"extras","A class descriptor");var O=_optionalCallableProperty(F,"finisher");return{elements:this.toElementDescriptors(F.elements),finisher:O}},runClassFinishers:function(F,B){for(var O=0;O<B.length;O++){var G=(0,B[O])(F);if(void 0!==G){if("function"!=typeof G)throw new TypeError("Finishers must return a constructor.");F=G}}return F},disallowProperty:function(F,B,O){if(void 0!==F[B])throw new TypeError(O+" can't have a ."+B+" property.")}};return D}function _createElementDescriptor(D){var F,B=_toPropertyKey(D.key);"method"===D.kind?F={value:D.value,writable:!0,configurable:!0,enumerable:!1}:"get"===D.kind?F={get:D.value,configurable:!0,enumerable:!1}:"set"===D.kind?F={set:D.value,configurable:!0,enumerable:!1}:"field"===D.kind&&(F={configurable:!0,writable:!0,enumerable:!0});var O={kind:"field"===D.kind?"field":"method",key:B,placement:D.static?"static":"field"===D.kind?"own":"prototype",descriptor:F};return D.decorators&&(O.decorators=D.decorators),"field"===D.kind&&(O.initializer=D.value),O}function _coalesceGetterSetter(D,F){void 0!==D.descriptor.get?F.descriptor.get=D.descriptor.get:F.descriptor.set=D.descriptor.set}function _coalesceClassElements(D){for(var F=[],B=function(q){return"method"===q.kind&&q.key===j.key&&q.placement===j.placement},O=0;O<D.length;O++){var G,j=D[O];if("method"===j.kind&&(G=F.find(B)))if(_isDataDescriptor(j.descriptor)||_isDataDescriptor(G.descriptor)){if(_hasDecorators(j)||_hasDecorators(G))throw new ReferenceError("Duplicated methods ("+j.key+") can't be decorated.");G.descriptor=j.descriptor}else{if(_hasDecorators(j)){if(_hasDecorators(G))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+j.key+").");G.decorators=j.decorators}_coalesceGetterSetter(j,G)}else F.push(j)}return F}function _hasDecorators(D){return D.decorators&&D.decorators.length}function _isDataDescriptor(D){return void 0!==D&&!(void 0===D.value&&void 0===D.writable)}function _optionalCallableProperty(D,F){var B=D[F];if(void 0!==B&&"function"!=typeof B)throw new TypeError("Expected '"+F+"' to be a function");return B}function _classPrivateMethodGet(D,F,B){if(!F.has(D))throw new TypeError("attempted to get private field on non-instance");return B}function _checkPrivateRedeclaration(D,F){if(F.has(D))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldInitSpec(D,F,B){_checkPrivateRedeclaration(D,F),F.set(D,B)}function _classPrivateMethodInitSpec(D,F){_checkPrivateRedeclaration(D,F),F.add(D)}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}var _extendStatics=function(D,F){return(_extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,O){B.__proto__=O}||function(B,O){for(var G in O)Object.prototype.hasOwnProperty.call(O,G)&&(B[G]=O[G])})(D,F)};function __extends(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function B(){this.constructor=D}_extendStatics(D,F),D.prototype=null===F?Object.create(F):(B.prototype=F.prototype,new B)}var _assign=function(){return _assign=Object.assign||function(D){for(var F,B=1,O=arguments.length;B<O;B++)for(var G in F=arguments[B])Object.prototype.hasOwnProperty.call(F,G)&&(D[G]=F[G]);return D},_assign.apply(this,arguments)};function __rest(D,F){var B={};for(var O in D)Object.prototype.hasOwnProperty.call(D,O)&&F.indexOf(O)<0&&(B[O]=D[O]);if(null!=D&&"function"==typeof Object.getOwnPropertySymbols){var G=0;for(O=Object.getOwnPropertySymbols(D);G<O.length;G++)F.indexOf(O[G])<0&&Object.prototype.propertyIsEnumerable.call(D,O[G])&&(B[O[G]]=D[O[G]])}return B}function __decorate(D,F,B,O){var G,j=arguments.length,q=j<3?F:null===O?O=Object.getOwnPropertyDescriptor(F,B):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)q=Reflect.decorate(D,F,B,O);else for(var W=D.length-1;W>=0;W--)(G=D[W])&&(q=(j<3?G(q):j>3?G(F,B,q):G(F,B))||q);return j>3&&q&&Object.defineProperty(F,B,q),q}function __param(D,F){return function(B,O){F(B,O,D)}}function __metadata(D,F){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(D,F)}function __awaiter(D,F,B,O){return new(B||(B=Promise))(function(G,j){function q(rt){try{Z(O.next(rt))}catch(Y){j(Y)}}function W(rt){try{Z(O.throw(rt))}catch(Y){j(Y)}}function Z(rt){var Y;rt.done?G(rt.value):(Y=rt.value,Y instanceof B?Y:new B(function(K){K(Y)})).then(q,W)}Z((O=O.apply(D,F||[])).next())})}function __generator(D,F){var B,O,G,j,q={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return j={next:W(0),throw:W(1),return:W(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function W(Z){return function(rt){return function(Y){if(B)throw new TypeError("Generator is already executing.");for(;q;)try{if(B=1,O&&(G=2&Y[0]?O.return:Y[0]?O.throw||((G=O.return)&&G.call(O),0):O.next)&&!(G=G.call(O,Y[1])).done)return G;switch(O=0,G&&(Y=[2&Y[0],G.value]),Y[0]){case 0:case 1:G=Y;break;case 4:return q.label++,{value:Y[1],done:!1};case 5:q.label++,O=Y[1],Y=[0];continue;case 7:Y=q.ops.pop(),q.trys.pop();continue;default:if(!((G=(G=q.trys).length>0&&G[G.length-1])||6!==Y[0]&&2!==Y[0])){q=0;continue}if(3===Y[0]&&(!G||Y[1]>G[0]&&Y[1]<G[3])){q.label=Y[1];break}if(6===Y[0]&&q.label<G[1]){q.label=G[1],G=Y;break}if(G&&q.label<G[2]){q.label=G[2],q.ops.push(Y);break}G[2]&&q.ops.pop(),q.trys.pop();continue}Y=F.call(D,q)}catch(K){Y=[6,K],O=0}finally{B=G=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}([Z,rt])}}}var __createBinding=Object.create?function(D,F,B,O){void 0===O&&(O=B),Object.defineProperty(D,O,{enumerable:!0,get:function(){return F[B]}})}:function(D,F,B,O){void 0===O&&(O=B),D[O]=F[B]};function __exportStar(D,F){for(var B in D)"default"===B||Object.prototype.hasOwnProperty.call(F,B)||__createBinding(F,D,B)}function __values(D){var F="function"==typeof Symbol&&Symbol.iterator,B=F&&D[F],O=0;if(B)return B.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&O>=D.length&&(D=void 0),{value:D&&D[O++],done:!D}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(D,F){var B="function"==typeof Symbol&&D[Symbol.iterator];if(!B)return D;var O,G,j=B.call(D),q=[];try{for(;(void 0===F||F-- >0)&&!(O=j.next()).done;)q.push(O.value)}catch(W){G={error:W}}finally{try{O&&!O.done&&(B=j.return)&&B.call(j)}finally{if(G)throw G.error}}return q}function __spread(){for(var D=[],F=0;F<arguments.length;F++)D=D.concat(__read(arguments[F]));return D}function __spreadArrays(){for(var D=0,F=0,B=arguments.length;F<B;F++)D+=arguments[F].length;var O=Array(D),G=0;for(F=0;F<B;F++)for(var j=arguments[F],q=0,W=j.length;q<W;q++,G++)O[G]=j[q];return O}function __spreadArray(D,F,B){if(B||2===arguments.length)for(var O,G=0,j=F.length;G<j;G++)!O&&G in F||(O||(O=Array.prototype.slice.call(F,0,G)),O[G]=F[G]);return D.concat(O||Array.prototype.slice.call(F))}function __await(D){return this instanceof __await?(this.v=D,this):new __await(D)}function __asyncGenerator(D,F,B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O,G=B.apply(D,F||[]),j=[];return O={},q("next"),q("throw"),q("return"),O[Symbol.asyncIterator]=function(){return this},O;function q(K){G[K]&&(O[K]=function(et){return new Promise(function(tt,J){j.push([K,et,tt,J])>1||W(K,et)})})}function W(K,et){try{(tt=G[K](et)).value instanceof __await?Promise.resolve(tt.value.v).then(Z,rt):Y(j[0][2],tt)}catch(tt){Y(j[0][3],tt)}var tt}function Z(K){W("next",K)}function rt(K){W("throw",K)}function Y(K,et){K(et),j.shift(),j.length&&W(j[0][0],j[0][1])}}function __asyncDelegator(D){var F,B;return F={},O("next"),O("throw",function(G){throw G}),O("return"),F[Symbol.iterator]=function(){return this},F;function O(G,j){F[G]=D[G]?function(q){return(B=!B)?{value:__await(D[G](q)),done:"return"===G}:j?j(q):q}:j}}function __asyncValues(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,B=D[Symbol.asyncIterator];return B?B.call(D):(D="function"==typeof __values?__values(D):D[Symbol.iterator](),F={},O("next"),O("throw"),O("return"),F[Symbol.asyncIterator]=function(){return this},F);function O(G){F[G]=D[G]&&function(j){return new Promise(function(q,W){var Z,rt,Y;Z=q,rt=W,Y=(j=D[G](j)).done,Promise.resolve(j.value).then(function(et){Z({value:et,done:Y})},rt)})}}}function __makeTemplateObject(D,F){return Object.defineProperty?Object.defineProperty(D,"raw",{value:F}):D.raw=F,D}var __setModuleDefault=Object.create?function(D,F){Object.defineProperty(D,"default",{enumerable:!0,value:F})}:function(D,F){D.default=F};function __importStar(D){if(D&&D.__esModule)return D;var F={};if(null!=D)for(var B in D)"default"!==B&&Object.prototype.hasOwnProperty.call(D,B)&&__createBinding(F,D,B);return __setModuleDefault(F,D),F}function __importDefault(D){return D&&D.__esModule?D:{default:D}}function __classPrivateFieldGet(D,F,B,O){if("a"===B&&!O)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof F?D!==F||!O:!F.has(D))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?O:"a"===B?O.call(D):O?O.value:F.get(D)}function __classPrivateFieldSet(D,F,B,O,G){if("m"===O)throw new TypeError("Private method is not writable");if("a"===O&&!G)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof F?D!==F||!G:!F.has(D))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===O?G.call(D,B):G?G.value=B:F.set(D,B),B}var t$3=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e$8=Symbol(),n$5=new Map;class s$3{constructor(F,B){if(this._$cssResult$=!0,B!==e$8)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=F}get styleSheet(){var F=n$5.get(this.cssText);return t$3&&void 0===F&&(n$5.set(this.cssText,F=new CSSStyleSheet),F.replaceSync(this.cssText)),F}toString(){return this.cssText}}var o$5=D=>new s$3("string"==typeof D?D:D+"",e$8),r$3=function(D){for(var F=arguments.length,B=new Array(F>1?F-1:0),O=1;O<F;O++)B[O-1]=arguments[O];var G=1===D.length?D[0]:B.reduce((j,q,W)=>j+(Z=>{if(!0===Z._$cssResult$)return Z.cssText;if("number"==typeof Z)return Z;throw Error("Value passed to 'css' function must be a 'css' function result: "+Z+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(q)+D[W+1],D[0]);return new s$3(G,e$8)},i$3=(D,F)=>{t$3?D.adoptedStyleSheets=F.map(B=>B instanceof CSSStyleSheet?B:B.styleSheet):F.forEach(B=>{var O=document.createElement("style"),G=window.litNonce;void 0!==G&&O.setAttribute("nonce",G),O.textContent=B.cssText,D.appendChild(O)})},S$1=t$3?D=>D:D=>D instanceof CSSStyleSheet?(F=>{var B="";for(var O of F.cssRules)B+=O.cssText;return o$5(B)})(D):D,s$2,e$7=window.trustedTypes,r$2=e$7?e$7.emptyScript:"",h$2=window.reactiveElementPolyfillSupport,o$4={toAttribute(D,F){switch(F){case Boolean:D=D?r$2:null;break;case Object:case Array:D=null==D?D:JSON.stringify(D)}return D},fromAttribute(D,F){var B=D;switch(F){case Boolean:B=null!==D;break;case Number:B=null===D?null:Number(D);break;case Object:case Array:try{B=JSON.parse(D)}catch{B=null}}return B}},n$4=(D,F)=>F!==D&&(F==F||D==D),l$3={attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},t$2;class a$1 extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(F){var B;null!==(B=this.l)&&void 0!==B||(this.l=[]),this.l.push(F)}static get observedAttributes(){this.finalize();var F=[];return this.elementProperties.forEach((B,O)=>{var G=this._$Eh(O,B);void 0!==G&&(this._$Eu.set(G,O),F.push(G))}),F}static createProperty(F){var B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l$3;if(B.state&&(B.attribute=!1),this.finalize(),this.elementProperties.set(F,B),!B.noAccessor&&!this.prototype.hasOwnProperty(F)){var O="symbol"==typeof F?Symbol():"__"+F,G=this.getPropertyDescriptor(F,O,B);void 0!==G&&Object.defineProperty(this.prototype,F,G)}}static getPropertyDescriptor(F,B,O){return{get(){return this[B]},set(G){var j=this[F];this[B]=G,this.requestUpdate(F,j,O)},configurable:!0,enumerable:!0}}static getPropertyOptions(F){return this.elementProperties.get(F)||l$3}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var F=Object.getPrototypeOf(this);if(F.finalize(),this.elementProperties=new Map(F.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var B=this.properties,O=[...Object.getOwnPropertyNames(B),...Object.getOwnPropertySymbols(B)];for(var G of O)this.createProperty(G,B[G])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(F){var B=[];if(Array.isArray(F)){var O=new Set(F.flat(1/0).reverse());for(var G of O)B.unshift(S$1(G))}else void 0!==F&&B.push(S$1(F));return B}static _$Eh(F,B){var O=B.attribute;return!1===O?void 0:"string"==typeof O?O:"string"==typeof F?F.toLowerCase():void 0}o(){var F;this._$Ep=new Promise(B=>this.enableUpdating=B),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(F=this.constructor.l)||void 0===F||F.forEach(B=>B(this))}addController(F){var B,O;(null!==(B=this._$Eg)&&void 0!==B?B:this._$Eg=[]).push(F),void 0!==this.renderRoot&&this.isConnected&&(null===(O=F.hostConnected)||void 0===O||O.call(F))}removeController(F){var B;null===(B=this._$Eg)||void 0===B||B.splice(this._$Eg.indexOf(F)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((F,B)=>{this.hasOwnProperty(B)&&(this._$Et.set(B,this[B]),delete this[B])})}createRenderRoot(){var F,B=null!==(F=this.shadowRoot)&&void 0!==F?F:this.attachShadow(this.constructor.shadowRootOptions);return i$3(B,this.constructor.elementStyles),B}connectedCallback(){var F;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(F=this._$Eg)||void 0===F||F.forEach(B=>{var O;return null===(O=B.hostConnected)||void 0===O?void 0:O.call(B)})}enableUpdating(F){}disconnectedCallback(){var F;null===(F=this._$Eg)||void 0===F||F.forEach(B=>{var O;return null===(O=B.hostDisconnected)||void 0===O?void 0:O.call(B)})}attributeChangedCallback(F,B,O){this._$AK(F,O)}_$ES(F,B){var O,G,j=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l$3,q=this.constructor._$Eh(F,j);if(void 0!==q&&!0===j.reflect){var W=(null!==(G=null===(O=j.converter)||void 0===O?void 0:O.toAttribute)&&void 0!==G?G:o$4.toAttribute)(B,j.type);this._$Ei=F,null==W?this.removeAttribute(q):this.setAttribute(q,W),this._$Ei=null}}_$AK(F,B){var O,G,j,q=this.constructor,W=q._$Eu.get(F);if(void 0!==W&&this._$Ei!==W){var Z=q.getPropertyOptions(W),rt=Z.converter,Y=null!==(j=null!==(G=null===(O=rt)||void 0===O?void 0:O.fromAttribute)&&void 0!==G?G:"function"==typeof rt?rt:null)&&void 0!==j?j:o$4.fromAttribute;this._$Ei=W,this[W]=Y(B,Z.type),this._$Ei=null}}requestUpdate(F,B,O){var G=!0;void 0!==F&&(((O=O||this.constructor.getPropertyOptions(F)).hasChanged||n$4)(this[F],B)?(this._$AL.has(F)||this._$AL.set(F,B),!0===O.reflect&&this._$Ei!==F&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(F,O))):G=!1),!this.isUpdatePending&&G&&(this._$Ep=this._$EC())}_$EC(){var F=this;return _asyncToGenerator(function*(){F.isUpdatePending=!0;try{yield F._$Ep}catch(O){Promise.reject(O)}var B=F.scheduleUpdate();return null!=B&&(yield B),!F.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var F;if(this.isUpdatePending){this._$Et&&(this._$Et.forEach((G,j)=>this[j]=G),this._$Et=void 0);var B=!1,O=this._$AL;try{(B=this.shouldUpdate(O))?(this.willUpdate(O),null===(F=this._$Eg)||void 0===F||F.forEach(G=>{var j;return null===(j=G.hostUpdate)||void 0===j?void 0:j.call(G)}),this.update(O)):this._$EU()}catch(G){throw B=!1,this._$EU(),G}B&&this._$AE(O)}}willUpdate(F){}_$AE(F){var B;null===(B=this._$Eg)||void 0===B||B.forEach(O=>{var G;return null===(G=O.hostUpdated)||void 0===G?void 0:G.call(O)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(F)),this.updated(F)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(F){return!0}update(F){void 0!==this._$E_&&(this._$E_.forEach((B,O)=>this._$ES(O,this[O],B)),this._$E_=void 0),this._$EU()}updated(F){}firstUpdated(F){}}a$1.finalized=!0,a$1.elementProperties=new Map,a$1.elementStyles=[],a$1.shadowRootOptions={mode:"open"},h$2?.({ReactiveElement:a$1}),(null!==(s$2=globalThis.reactiveElementVersions)&&void 0!==s$2?s$2:globalThis.reactiveElementVersions=[]).push("1.2.1");var i$2=globalThis.trustedTypes,s$1=i$2?i$2.createPolicy("lit-html",{createHTML:D=>D}):void 0,e$6="lit$".concat((Math.random()+"").slice(9),"$"),o$3="?"+e$6,n$3="<".concat(o$3,">"),l$2=document,h$1=function(){return l$2.createComment(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},r$1=D=>null===D||"object"!=typeof D&&"function"!=typeof D,d=Array.isArray,u=D=>{var F;return d(D)||"function"==typeof(null===(F=D)||void 0===F?void 0:F[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \x09\n\x0c\r](?:([^\s"'>=/]+)([ \x09\n\x0c\r]*=[ \x09\n\x0c\r]*(?:[^ \x09\n\x0c\r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea)$/i,p=D=>function(F){for(var B=arguments.length,O=new Array(B>1?B-1:0),G=1;G<B;G++)O[G-1]=arguments[G];return{_$litType$:D,strings:F,values:O}},$=p(1),y=p(2),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,x=(D,F,B)=>{var O,G,j=null!==(O=B?.renderBefore)&&void 0!==O?O:F,q=j._$litPart$;if(void 0===q){var W=null!==(G=B?.renderBefore)&&void 0!==G?G:null;j._$litPart$=q=new N(F.insertBefore(h$1(),W),W,void 0,B??{})}return q._$AI(D),q},A=l$2.createTreeWalker(l$2,129,null,!1),C=(D,F)=>{for(var B,O=D.length-1,G=[],j=2===F?"<svg>":"",q=c,W=0;W<O;W++){for(var Z=D[W],rt=void 0,Y=void 0,K=-1,et=0;et<Z.length&&(q.lastIndex=et,null!==(Y=q.exec(Z)));)et=q.lastIndex,q===c?"!--"===Y[1]?q=v:void 0!==Y[1]?q=a:void 0!==Y[2]?(g.test(Y[2])&&(B=RegExp("</"+Y[2],"g")),q=f):void 0!==Y[3]&&(q=f):q===f?">"===Y[0]?(q=B??c,K=-1):void 0===Y[1]?K=-2:(K=q.lastIndex-Y[2].length,rt=Y[1],q=void 0===Y[3]?f:'"'===Y[3]?m:_):q===m||q===_?q=f:q===v||q===a?q=c:(q=f,B=void 0);var tt=q===f&&D[W+1].startsWith("/>")?" ":"";j+=q===c?Z+n$3:K>=0?(G.push(rt),Z.slice(0,K)+"$lit$"+Z.slice(K)+e$6+tt):Z+e$6+(-2===K?(G.push(void 0),W):tt)}var J=j+(D[O]||"<?>")+(2===F?"</svg>":"");if(!Array.isArray(D)||!D.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s$1?s$1.createHTML(J):J,G]};class E{constructor(F,B){var O,{strings:G,_$litType$:j}=F;this.parts=[];var q=0,W=0,Z=G.length-1,rt=this.parts,[Y,K]=C(G,j);if(this.el=E.createElement(Y,B),A.currentNode=this.el.content,2===j){var et=this.el.content,tt=et.firstChild;tt.remove(),et.append(...tt.childNodes)}for(;null!==(O=A.nextNode())&&rt.length<Z;){if(1===O.nodeType){if(O.hasAttributes()){var J=[];for(var U of O.getAttributeNames())if(U.endsWith("$lit$")||U.startsWith(e$6)){var X=K[W++];if(J.push(U),void 0!==X){var Q=O.getAttribute(X.toLowerCase()+"$lit$").split(e$6),it=/([.?@])?(.*)/.exec(X);rt.push({type:1,index:q,name:it[2],strings:Q,ctor:"."===it[1]?M:"?"===it[1]?H:"@"===it[1]?I:S})}else rt.push({type:6,index:q})}for(var at of J)O.removeAttribute(at)}if(g.test(O.tagName)){var st=O.textContent.split(e$6),ot=st.length-1;if(ot>0){O.textContent=i$2?i$2.emptyScript:"";for(var ft=0;ft<ot;ft++)O.append(st[ft],h$1()),A.nextNode(),rt.push({type:2,index:++q});O.append(st[ot],h$1())}}}else if(8===O.nodeType)if(O.data===o$3)rt.push({type:2,index:q});else for(var pt=-1;-1!==(pt=O.data.indexOf(e$6,pt+1));)rt.push({type:7,index:q}),pt+=e$6.length-1;q++}}static createElement(F,B){var O=l$2.createElement("template");return O.innerHTML=F,O}}function P(D,F){var B,O,G,j,q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D,W=arguments.length>3?arguments[3]:void 0;if(F===b)return F;var Z=void 0!==W?null===(B=q._$Cl)||void 0===B?void 0:B[W]:q._$Cu,rt=r$1(F)?void 0:F._$litDirective$;return Z?.constructor!==rt&&(null===(O=Z?._$AO)||void 0===O||O.call(Z,!1),void 0===rt?Z=void 0:(Z=new rt(D))._$AT(D,q,W),void 0!==W?(null!==(G=(j=q)._$Cl)&&void 0!==G?G:j._$Cl=[])[W]=Z:q._$Cu=Z),void 0!==Z&&(F=P(D,Z._$AS(D,F.values),Z,W)),F}class V{constructor(F,B){this.v=[],this._$AN=void 0,this._$AD=F,this._$AM=B}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(F){var B,{el:{content:O},parts:G}=this._$AD,j=(null!==(B=F?.creationScope)&&void 0!==B?B:l$2).importNode(O,!0);A.currentNode=j;for(var q=A.nextNode(),W=0,Z=0,rt=G[0];void 0!==rt;){if(W===rt.index){var Y=void 0;2===rt.type?Y=new N(q,q.nextSibling,this,F):1===rt.type?Y=new rt.ctor(q,rt.name,rt.strings,this,F):6===rt.type&&(Y=new L(q,this,F)),this.v.push(Y),rt=G[++Z]}W!==rt?.index&&(q=A.nextNode(),W++)}return j}m(F){var B=0;for(var O of this.v)void 0!==O&&(void 0!==O.strings?(O._$AI(F,O,B),B+=O.strings.length-2):O._$AI(F[B])),B++}}class N{constructor(F,B,O,G){var j;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=F,this._$AB=B,this._$AM=O,this.options=G,this._$Cg=null===(j=G?.isConnected)||void 0===j||j}get _$AU(){var F,B;return null!==(B=null===(F=this._$AM)||void 0===F?void 0:F._$AU)&&void 0!==B?B:this._$Cg}get parentNode(){var F=this._$AA.parentNode,B=this._$AM;return void 0!==B&&11===F.nodeType&&(F=B.parentNode),F}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(F){F=P(this,F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),r$1(F)?F===w||null==F||""===F?(this._$AH!==w&&this._$AR(),this._$AH=w):F!==this._$AH&&F!==b&&this.$(F):void 0!==F._$litType$?this.T(F):void 0!==F.nodeType?this.S(F):u(F)?this.A(F):this.$(F)}M(F){return this._$AA.parentNode.insertBefore(F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB)}S(F){this._$AH!==F&&(this._$AR(),this._$AH=this.M(F))}$(F){this._$AH!==w&&r$1(this._$AH)?this._$AA.nextSibling.data=F:this.S(l$2.createTextNode(F)),this._$AH=F}T(F){var B,{values:O,_$litType$:G}=F,j="number"==typeof G?this._$AC(F):(void 0===G.el&&(G.el=E.createElement(G.h,this.options)),G);if((null===(B=this._$AH)||void 0===B?void 0:B._$AD)===j)this._$AH.m(O);else{var q=new V(j,this),W=q.p(this.options);q.m(O),this.S(W),this._$AH=q}}_$AC(F){var B=T.get(F.strings);return void 0===B&&T.set(F.strings,B=new E(F)),B}A(F){d(this._$AH)||(this._$AH=[],this._$AR());var B,O=this._$AH,G=0;for(var j of F)G===O.length?O.push(B=new N(this.M(h$1()),this.M(h$1()),this,this.options)):B=O[G],B._$AI(j),G++;G<O.length&&(this._$AR(B&&B._$AB.nextSibling,G),O.length=G)}_$AR(){var F,B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling;for(null===(F=this._$AP)||void 0===F||F.call(this,!1,!0,arguments.length>1?arguments[1]:void 0);B&&B!==this._$AB;){var G=B.nextSibling;B.remove(),B=G}}setConnected(F){var B;void 0===this._$AM&&(this._$Cg=F,null===(B=this._$AP)||void 0===B||B.call(this,F))}}class S{constructor(F,B,O,G,j){this.type=1,this._$AH=w,this._$AN=void 0,this.element=F,this.name=B,this._$AM=G,this.options=j,O.length>2||""!==O[0]||""!==O[1]?(this._$AH=Array(O.length-1).fill(new String),this.strings=O):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(F){var B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,O=arguments.length>2?arguments[2]:void 0,G=arguments.length>3?arguments[3]:void 0,j=this.strings,q=!1;if(void 0===j)F=P(this,F,B,0),(q=!r$1(F)||F!==this._$AH&&F!==b)&&(this._$AH=F);else{var W,Z,rt=F;for(F=j[0],W=0;W<j.length-1;W++)(Z=P(this,rt[O+W],B,W))===b&&(Z=this._$AH[W]),q||(q=!r$1(Z)||Z!==this._$AH[W]),Z===w?F=w:F!==w&&(F+=(Z??"")+j[W+1]),this._$AH[W]=Z}q&&!G&&this.k(F)}k(F){F===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,F??"")}}class M extends S{constructor(){super(...arguments),this.type=3}k(F){this.element[this.name]=F===w?void 0:F}}var k=i$2?i$2.emptyScript:"";class H extends S{constructor(){super(...arguments),this.type=4}k(F){F&&F!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(F,B,O,G,j){super(F,B,O,G,j),this.type=5}_$AI(F){var B;if((F=null!==(B=P(this,F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==B?B:w)!==b){var O=this._$AH,G=F===w&&O!==w||F.capture!==O.capture||F.once!==O.once||F.passive!==O.passive,j=F!==w&&(O===w||G);G&&this.element.removeEventListener(this.name,this,O),j&&this.element.addEventListener(this.name,this,F),this._$AH=F}}handleEvent(F){var B,O;"function"==typeof this._$AH?this._$AH.call(null!==(O=null===(B=this.options)||void 0===B?void 0:B.host)&&void 0!==O?O:this.element,F):this._$AH.handleEvent(F)}}class L{constructor(F,B,O){this.element=F,this.type=6,this._$AN=void 0,this._$AM=B,this.options=O}get _$AU(){return this._$AM._$AU}_$AI(F){P(this,F)}}var R={P:"$lit$",V:e$6,L:o$3,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},z=window.litHtmlPolyfillSupport,l$1,o$2;z?.(E,N),(null!==(t$2=globalThis.litHtmlVersions)&&void 0!==t$2?t$2:globalThis.litHtmlVersions=[]).push("2.1.2");var r=a$1;class s extends a$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var F,B,O=super.createRenderRoot();return null!==(F=(B=this.renderOptions).renderBefore)&&void 0!==F||(B.renderBefore=O.firstChild),O}update(F){var B=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(F),this._$Dt=x(B,this.renderRoot,this.renderOptions)}connectedCallback(){var F;super.connectedCallback(),null===(F=this._$Dt)||void 0===F||F.setConnected(!0)}disconnectedCallback(){var F;super.disconnectedCallback(),null===(F=this._$Dt)||void 0===F||F.setConnected(!1)}render(){return b}}s.finalized=!0,s._$litElement$=!0,null===(l$1=globalThis.litElementHydrateSupport)||void 0===l$1||l$1.call(globalThis,{LitElement:s});var n$2=globalThis.litElementPolyfillSupport;n$2?.({LitElement:s});var h={_$AK:(D,F,B)=>{D._$AK(F,B)},_$AL:D=>D._$AL};(null!==(o$2=globalThis.litElementVersions)&&void 0!==o$2?o$2:globalThis.litElementVersions=[]).push("3.1.2");var n$1=D=>F=>{return"function"==typeof F?(O=F,window.customElements.define(D,O),O):((B,O)=>{var{kind:G,elements:j}=O;return{kind:G,elements:j,finisher(q){window.customElements.define(B,q)}}})(D,F);var O},i$1=(D,F)=>"method"===F.kind&&F.descriptor&&!("value"in F.descriptor)?_objectSpread2(_objectSpread2({},F),{},{finisher(B){B.createProperty(F.key,D)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:F.key,initializer(){"function"==typeof F.initializer&&(this[F.key]=F.initializer.call(this))},finisher(B){B.createProperty(F.key,D)}};function e$5(D){return(F,B)=>void 0!==B?void F.constructor.createProperty(B,D):i$1(D,F)}function t$1(D){return e$5(_objectSpread2(_objectSpread2({},D),{},{state:!0}))}var e$4=(D,F,B)=>{Object.defineProperty(F,B,D)},t=(D,F)=>({kind:"method",placement:"prototype",key:F.key,descriptor:D}),o$1=D=>{var{finisher:F,descriptor:B}=D;return(O,G)=>{var j;if(void 0===G){var q=null!==(j=O.originalKey)&&void 0!==j?j:O.key,W=null!=B?{kind:"method",placement:"prototype",key:q,descriptor:B(O.key)}:_objectSpread2(_objectSpread2({},O),{},{key:q});return null!=F&&(W.finisher=function(rt){F(rt,q)}),W}var Z=O.constructor;void 0!==B&&Object.defineProperty(O,G,B(G)),F?.(Z,G)}},n;function e$3(D){return o$1({finisher:(F,B)=>{Object.assign(F.prototype[B],D)}})}function i(D,F){return o$1({descriptor:B=>{var O={get(){var j,q;return null!==(q=null===(j=this.renderRoot)||void 0===j?void 0:j.querySelector(D))&&void 0!==q?q:null},enumerable:!0,configurable:!0};if(F){var G="symbol"==typeof B?Symbol():"__"+B;O.get=function(){var j,q;return void 0===this[G]&&(this[G]=null!==(q=null===(j=this.renderRoot)||void 0===j?void 0:j.querySelector(D))&&void 0!==q?q:null),this[G]}}return O}})}function e$2(D){return o$1({descriptor:F=>({get(){var B,O;return null!==(O=null===(B=this.renderRoot)||void 0===B?void 0:B.querySelectorAll(D))&&void 0!==O?O:[]},enumerable:!0,configurable:!0})})}function e$1(D){return o$1({descriptor:F=>({get(){var B=this;return _asyncToGenerator(function*(){var O;return yield B.updateComplete,null===(O=B.renderRoot)||void 0===O?void 0:O.querySelector(D)})()},enumerable:!0,configurable:!0})})}var e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(D,F)=>D.assignedElements(F):(D,F)=>D.assignedNodes(F).filter(B=>B.nodeType===Node.ELEMENT_NODE);function l(D){var{slot:F,selector:B}=D??{};return o$1({descriptor:O=>({get(){var G,j="slot"+(F?"[name=".concat(F,"]"):":not([name])"),q=null===(G=this.renderRoot)||void 0===G?void 0:G.querySelector(j),W=null!=q?e(q,D):[];return B?W.filter(Z=>Z.matches(B)):W},enumerable:!0,configurable:!0})})}function o(D,F,B){var O,G=D;return"object"==typeof D?(G=D.slot,O=D):O={flatten:F},B?l({slot:G,flatten:F,selector:B}):o$1({descriptor:j=>({get(){var q,W,Z="slot"+(G?"[name=".concat(G,"]"):":not([name])"),rt=null===(q=this.renderRoot)||void 0===q?void 0:q.querySelector(Z);return null!==(W=rt?.assignedNodes(O))&&void 0!==W?W:[]},enumerable:!0,configurable:!0})})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function getDefaultExportFromNamespaceIfPresent(D){return D&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function getDefaultExportFromNamespaceIfNotNamed(D){return D&&Object.prototype.hasOwnProperty.call(D,"default")&&1===Object.keys(D).length?D.default:D}function getAugmentedNamespace(D){if(D.__esModule)return D;var F=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(D).forEach(function(B){var O=Object.getOwnPropertyDescriptor(D,B);Object.defineProperty(F,B,O.get?O:{enumerable:!0,get:function(){return D[B]}})}),F}function commonjsRequire(D){throw new Error('Could not dynamically require "'+D+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lottie$1={exports:{}};(function(module,exports){var factory;typeof navigator<"u"&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(D){_useWebWorker=!!D},getWebWorker=function(){return _useWebWorker},setLocationHref=function(D){locationHref=D},getLocationHref=function(){return locationHref};function createTag(D){return document.createElement(D)}function extendPrototype(D,F){var B,O,G=D.length;for(B=0;B<G;B+=1)for(var j in O=D[B].prototype)Object.prototype.hasOwnProperty.call(O,j)&&(F.prototype[j]=O[j])}function getDescriptor(D,F){return Object.getOwnPropertyDescriptor(D,F)}function createProxyFunction(D){function F(){}return F.prototype=D,F}var audioControllerFactory=function(){function D(F){this.audios=[],this.audioFactory=F,this._volume=1,this._isMuted=!1}return D.prototype={addAudio:function(F){this.audios.push(F)},pause:function(){var F,B=this.audios.length;for(F=0;F<B;F+=1)this.audios[F].pause()},resume:function(){var F,B=this.audios.length;for(F=0;F<B;F+=1)this.audios[F].resume()},setRate:function(F){var B,O=this.audios.length;for(B=0;B<O;B+=1)this.audios[B].setRate(F)},createAudio:function(F){return this.audioFactory?this.audioFactory(F):window.Howl?new window.Howl({src:[F]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(F){this.audioFactory=F},setVolume:function(F){this._volume=F,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var F,B=this.audios.length;for(F=0;F<B;F+=1)this.audios[F].volume(this._volume*(this._isMuted?0:1))}},function(){return new D}}(),createTypedArray=function(){function D(F,B){var O,G=0,j=[];switch(F){case"int16":case"uint8c":O=1;break;default:O=1.1}for(G=0;G<B;G+=1)j.push(O);return j}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(F,B){return"float32"===F?new Float32Array(B):"int16"===F?new Int16Array(B):"uint8c"===F?new Uint8ClampedArray(B):D(F,B)}:D}();function createSizedArray(D){return Array.apply(null,{length:D})}function _typeof$6(D){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}(function(){var D,F=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],B=F.length;for(D=0;D<B;D+=1)BMMath[F[D]]=Math[F[D]]})(),BMMath.random=Math.random,BMMath.abs=function(D){if("object"===_typeof$6(D)&&D.length){var F,B=createSizedArray(D.length),O=D.length;for(F=0;F<O;F+=1)B[F]=Math.abs(D[F]);return B}return Math.abs(D)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(D){_shouldRoundValues=!!D}function bmRnd(D){return _shouldRoundValues?Math.round(D):D}function styleDiv(D){D.style.position="absolute",D.style.top=0,D.style.left=0,D.style.display="block",D.style.transformOrigin="0 0",D.style.webkitTransformOrigin="0 0",D.style.backfaceVisibility="visible",D.style.webkitBackfaceVisibility="visible",D.style.transformStyle="preserve-3d",D.style.webkitTransformStyle="preserve-3d",D.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(D,F,B,O){this.type=D,this.currentTime=F,this.totalTime=B,this.direction=O<0?-1:1}function BMCompleteEvent(D,F){this.type=D,this.direction=F<0?-1:1}function BMCompleteLoopEvent(D,F,B,O){this.type=D,this.currentLoop=B,this.totalLoops=F,this.direction=O<0?-1:1}function BMSegmentStartEvent(D,F,B){this.type=D,this.firstFrame=F,this.totalFrames=B}function BMDestroyEvent(D,F){this.type=D,this.target=F}function BMRenderFrameErrorEvent(D,F){this.type="renderFrameError",this.nativeError=D,this.currentTime=F}function BMConfigErrorEvent(D){this.type="configError",this.nativeError=D}function BMAnimationConfigErrorEvent(D,F){this.type=D,this.nativeError=F}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(D,F,B){var O,G,j,q,W,Z,rt,Y;switch(Z=B*(1-F),rt=B*(1-(W=6*D-(q=Math.floor(6*D)))*F),Y=B*(1-(1-W)*F),q%6){case 0:O=B,G=Y,j=Z;break;case 1:O=rt,G=B,j=Z;break;case 2:O=Z,G=B,j=Y;break;case 3:O=Z,G=rt,j=B;break;case 4:O=Y,G=Z,j=B;break;case 5:O=B,G=Z,j=rt}return[O,G,j]}function RGBtoHSV(D,F,B){var O,G=Math.max(D,F,B),j=Math.min(D,F,B),q=G-j,W=0===G?0:q/G,Z=G/255;switch(G){case j:O=0;break;case D:O=F-B+q*(F<B?6:0),O/=6*q;break;case F:O=B-D+2*q,O/=6*q;break;case B:O=D-F+4*q,O/=6*q}return[O,W,Z]}function addSaturationToRGB(D,F){var B=RGBtoHSV(255*D[0],255*D[1],255*D[2]);return B[1]+=F,B[1]>1?B[1]=1:B[1]<=0&&(B[1]=0),HSVtoRGB(B[0],B[1],B[2])}function addBrightnessToRGB(D,F){var B=RGBtoHSV(255*D[0],255*D[1],255*D[2]);return B[2]+=F,B[2]>1?B[2]=1:B[2]<0&&(B[2]=0),HSVtoRGB(B[0],B[1],B[2])}function addHueToRGB(D,F){var B=RGBtoHSV(255*D[0],255*D[1],255*D[2]);return B[0]+=F/360,B[0]>1?B[0]-=1:B[0]<0&&(B[0]+=1),HSVtoRGB(B[0],B[1],B[2])}var rgbToHex=function(){var D,F,B=[];for(D=0;D<256;D+=1)F=D.toString(16),B[D]=1===F.length?"0"+F:F;return function(O,G,j){return O<0&&(O=0),G<0&&(G=0),j<0&&(j=0),"#"+B[O]+B[G]+B[j]}}(),setSubframeEnabled=function(D){subframeEnabled=!!D},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(D){expressionsPlugin=D},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(D){expressionsInterfaces=D},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(D){defaultCurveSegments=D},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(D){idPrefix$1=D},getIdPrefix=function(){return idPrefix$1};function createNS(D){return document.createElementNS(svgNS,D)}function _typeof$5(D){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}var dataManager=function(){var D,F,B=1,O=[],G={onmessage:function(){},postMessage:function(Z){D({data:Z})}},j={postMessage:function(Z){G.onmessage({data:Z})}};function q(){F||((F=function(Z){if(window.Worker&&window.Blob&&getWebWorker()){var rt=new Blob(["var _workerSelf = self; self.onmessage = ",Z.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(rt);return new Worker(Y)}return D=Z,G}(function(Z){if(j.dataManager||(j.dataManager=function(){function Y(pt,lt){var ut,ct,nt,bt,gt,mt,vt=pt.length;for(ct=0;ct<vt;ct+=1)if("ks"in(ut=pt[ct])&&!ut.completed){if(ut.completed=!0,ut.hasMask){var Pt=ut.masksProperties;for(bt=Pt.length,nt=0;nt<bt;nt+=1)if(Pt[nt].pt.k.i)tt(Pt[nt].pt.k);else for(mt=Pt[nt].pt.k.length,gt=0;gt<mt;gt+=1)Pt[nt].pt.k[gt].s&&tt(Pt[nt].pt.k[gt].s[0]),Pt[nt].pt.k[gt].e&&tt(Pt[nt].pt.k[gt].e[0])}0===ut.ty?(ut.layers=K(ut.refId,lt),Y(ut.layers,lt)):4===ut.ty&&et(ut.shapes)}}function K(pt,lt){var ut=function(ct,nt){for(var bt=0,gt=nt.length;bt<gt;){if(nt[bt].id===ct)return nt[bt];bt+=1}return null}(pt,lt);return ut?ut.layers.__used?JSON.parse(JSON.stringify(ut.layers)):(ut.layers.__used=!0,ut.layers):null}function et(pt){var lt,ut,ct;for(lt=pt.length-1;lt>=0;lt-=1)if("sh"===pt[lt].ty)if(pt[lt].ks.k.i)tt(pt[lt].ks.k);else for(ct=pt[lt].ks.k.length,ut=0;ut<ct;ut+=1)pt[lt].ks.k[ut].s&&tt(pt[lt].ks.k[ut].s[0]),pt[lt].ks.k[ut].e&&tt(pt[lt].ks.k[ut].e[0]);else"gr"===pt[lt].ty&&et(pt[lt].it)}function tt(pt){var lt,ut=pt.i.length;for(lt=0;lt<ut;lt+=1)pt.i[lt][0]+=pt.v[lt][0],pt.i[lt][1]+=pt.v[lt][1],pt.o[lt][0]+=pt.v[lt][0],pt.o[lt][1]+=pt.v[lt][1]}function J(pt,lt){var ut=lt?lt.split("."):[100,100,100];return pt[0]>ut[0]||!(ut[0]>pt[0])&&(pt[1]>ut[1]||!(ut[1]>pt[1])&&(pt[2]>ut[2]||!(ut[2]>pt[2])&&null))}var U,X=function(){var pt=[4,4,14];function lt(ut){var ct,nt,bt,gt=ut.length;for(ct=0;ct<gt;ct+=1)5===ut[ct].ty&&(bt=(nt=ut[ct]).t.d,nt.t.d={k:[{s:bt,t:0}]})}return function(ut){if(J(pt,ut.v)&&(lt(ut.layers),ut.assets)){var ct,nt=ut.assets.length;for(ct=0;ct<nt;ct+=1)ut.assets[ct].layers&&lt(ut.assets[ct].layers)}}}(),Q=(U=[4,7,99],function(pt){if(pt.chars&&!J(U,pt.v)){var lt,ut=pt.chars.length;for(lt=0;lt<ut;lt+=1){var ct=pt.chars[lt];ct.data&&ct.data.shapes&&(et(ct.data.shapes),ct.data.ip=0,ct.data.op=99999,ct.data.st=0,ct.data.sr=1,ct.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},pt.chars[lt].t||(ct.data.shapes.push({ty:"no"}),ct.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),it=function(){var pt=[5,7,15];function lt(ut){var ct,nt,bt=ut.length;for(ct=0;ct<bt;ct+=1)5===ut[ct].ty&&(nt=void 0,"number"==typeof(nt=ut[ct].t.p).a&&(nt.a={a:0,k:nt.a}),"number"==typeof nt.p&&(nt.p={a:0,k:nt.p}),"number"==typeof nt.r&&(nt.r={a:0,k:nt.r}))}return function(ut){if(J(pt,ut.v)&&(lt(ut.layers),ut.assets)){var ct,nt=ut.assets.length;for(ct=0;ct<nt;ct+=1)ut.assets[ct].layers&&lt(ut.assets[ct].layers)}}}(),at=function(){var pt=[4,1,9];function lt(ct){var nt,bt,gt,mt=ct.length;for(nt=0;nt<mt;nt+=1)if("gr"===ct[nt].ty)lt(ct[nt].it);else if("fl"===ct[nt].ty||"st"===ct[nt].ty)if(ct[nt].c.k&&ct[nt].c.k[0].i)for(gt=ct[nt].c.k.length,bt=0;bt<gt;bt+=1)ct[nt].c.k[bt].s&&(ct[nt].c.k[bt].s[0]/=255,ct[nt].c.k[bt].s[1]/=255,ct[nt].c.k[bt].s[2]/=255,ct[nt].c.k[bt].s[3]/=255),ct[nt].c.k[bt].e&&(ct[nt].c.k[bt].e[0]/=255,ct[nt].c.k[bt].e[1]/=255,ct[nt].c.k[bt].e[2]/=255,ct[nt].c.k[bt].e[3]/=255);else ct[nt].c.k[0]/=255,ct[nt].c.k[1]/=255,ct[nt].c.k[2]/=255,ct[nt].c.k[3]/=255}function ut(ct){var nt,bt=ct.length;for(nt=0;nt<bt;nt+=1)4===ct[nt].ty&&lt(ct[nt].shapes)}return function(ct){if(J(pt,ct.v)&&(ut(ct.layers),ct.assets)){var nt,bt=ct.assets.length;for(nt=0;nt<bt;nt+=1)ct.assets[nt].layers&&ut(ct.assets[nt].layers)}}}(),st=function(){var pt=[4,4,18];function lt(ct){var nt,bt,gt;for(nt=ct.length-1;nt>=0;nt-=1)if("sh"===ct[nt].ty)if(ct[nt].ks.k.i)ct[nt].ks.k.c=ct[nt].closed;else for(gt=ct[nt].ks.k.length,bt=0;bt<gt;bt+=1)ct[nt].ks.k[bt].s&&(ct[nt].ks.k[bt].s[0].c=ct[nt].closed),ct[nt].ks.k[bt].e&&(ct[nt].ks.k[bt].e[0].c=ct[nt].closed);else"gr"===ct[nt].ty&&lt(ct[nt].it)}function ut(ct){var nt,bt,gt,mt,vt,Pt,dt=ct.length;for(bt=0;bt<dt;bt+=1){if((nt=ct[bt]).hasMask){var ht=nt.masksProperties;for(mt=ht.length,gt=0;gt<mt;gt+=1)if(ht[gt].pt.k.i)ht[gt].pt.k.c=ht[gt].cl;else for(Pt=ht[gt].pt.k.length,vt=0;vt<Pt;vt+=1)ht[gt].pt.k[vt].s&&(ht[gt].pt.k[vt].s[0].c=ht[gt].cl),ht[gt].pt.k[vt].e&&(ht[gt].pt.k[vt].e[0].c=ht[gt].cl)}4===nt.ty&&lt(nt.shapes)}}return function(ct){if(J(pt,ct.v)&&(ut(ct.layers),ct.assets)){var nt,bt=ct.assets.length;for(nt=0;nt<bt;nt+=1)ct.assets[nt].layers&&ut(ct.assets[nt].layers)}}}();var ft={completeData:function(pt){pt.__complete||(at(pt),X(pt),Q(pt),it(pt),st(pt),Y(pt.layers,pt.assets),function(lt,ut){if(lt){var ct=0,nt=lt.length;for(ct=0;ct<nt;ct+=1)1===lt[ct].t&&(lt[ct].data.layers=K(lt[ct].data.refId,ut),Y(lt[ct].data.layers,ut))}}(pt.chars,pt.assets),pt.__complete=!0)}};return ft.checkColors=at,ft.checkChars=Q,ft.checkPathProperties=it,ft.checkShapes=st,ft.completeLayers=Y,ft}()),j.assetLoader||(j.assetLoader=function(){function Y(K){var et=K.getResponseHeader("content-type");return et&&"json"===K.responseType&&-1!==et.indexOf("json")||K.response&&"object"===_typeof$5(K.response)?K.response:K.response&&"string"==typeof K.response?JSON.parse(K.response):K.responseText?JSON.parse(K.responseText):null}return{load:function(K,et,tt,J){var U,X=new XMLHttpRequest;try{X.responseType="json"}catch{}X.onreadystatechange=function(){if(4===X.readyState)if(200===X.status)U=Y(X),tt(U);else try{U=Y(X),tt(U)}catch(Q){J&&J(Q)}};try{X.open(["G","E","T"].join(""),K,!0)}catch{X.open(["G","E","T"].join(""),et+"/"+K,!0)}X.send()}}}()),"loadAnimation"===Z.data.type)j.assetLoader.load(Z.data.path,Z.data.fullPath,function(Y){j.dataManager.completeData(Y),j.postMessage({id:Z.data.id,payload:Y,status:"success"})},function(){j.postMessage({id:Z.data.id,status:"error"})});else if("complete"===Z.data.type){var rt=Z.data.animation;j.dataManager.completeData(rt),j.postMessage({id:Z.data.id,payload:rt,status:"success"})}else"loadData"===Z.data.type&&j.assetLoader.load(Z.data.path,Z.data.fullPath,function(Y){j.postMessage({id:Z.data.id,payload:Y,status:"success"})},function(){j.postMessage({id:Z.data.id,status:"error"})})})).onmessage=function(Z){var rt=Z.data,Y=rt.id,K=O[Y];O[Y]=null,"success"===rt.status?K.onComplete(rt.payload):K.onError&&K.onError()})}function W(Z,rt){var Y="processId_"+(B+=1);return O[Y]={onComplete:Z,onError:rt},Y}return{loadAnimation:function(Z,rt,Y){q();var K=W(rt,Y);F.postMessage({type:"loadAnimation",path:Z,fullPath:window.location.origin+window.location.pathname,id:K})},loadData:function(Z,rt,Y){q();var K=W(rt,Y);F.postMessage({type:"loadData",path:Z,fullPath:window.location.origin+window.location.pathname,id:K})},completeAnimation:function(Z,rt,Y){q();var K=W(rt,Y);F.postMessage({type:"complete",animation:Z,id:K})}}}(),ImagePreloader=function(){var D=function(){var W=createTag("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),W}();function F(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function B(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function O(W,Z,rt){var Y="";if(W.e)Y=W.p;else if(Z){var K=W.p;-1!==K.indexOf("images/")&&(K=K.split("/")[1]),Y=Z+K}else Y=rt,Y+=W.u?W.u:"",Y+=W.p;return Y}function G(W){var Z=0,rt=setInterval(function(){(W.getBBox().width||Z>500)&&(this._imageLoaded(),clearInterval(rt)),Z+=1}.bind(this),50)}function j(W){var Z={assetData:W},rt=O(W,this.assetsPath,this.path);return dataManager.loadData(rt,function(Y){Z.img=Y,this._footageLoaded()}.bind(this),function(){Z.img={},this._footageLoaded()}.bind(this)),Z}function q(){this._imageLoaded=F.bind(this),this._footageLoaded=B.bind(this),this.testImageLoaded=G.bind(this),this.createFootageData=j.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return q.prototype={loadAssets:function(W,Z){var rt;this.imagesLoadedCb=Z;var Y=W.length;for(rt=0;rt<Y;rt+=1)W[rt].layers||(W[rt].t&&"seq"!==W[rt].t?3===W[rt].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[rt]))):(this.totalImages+=1,this.images.push(this._createImageData(W[rt]))))},setAssetsPath:function(W){this.assetsPath=W||""},setPath:function(W){this.path=W||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(W){for(var Z=0,rt=this.images.length;Z<rt;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null},createImgData:function(W){var Z=O(W,this.assetsPath,this.path),rt=createTag("img");rt.crossOrigin="anonymous",rt.addEventListener("load",this._imageLoaded,!1),rt.addEventListener("error",function(){Y.img=D,this._imageLoaded()}.bind(this),!1),rt.src=Z;var Y={img:rt,assetData:W};return Y},createImageData:function(W){var Z=O(W,this.assetsPath,this.path),rt=createNS("image");isSafari?this.testImageLoaded(rt):rt.addEventListener("load",this._imageLoaded,!1),rt.addEventListener("error",function(){Y.img=D,this._imageLoaded()}.bind(this),!1),rt.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(rt):this._elementHelper.appendChild(rt);var Y={img:rt,assetData:W};return Y},imageLoaded:F,footageLoaded:B,setCacheType:function(W,Z){"svg"===W?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},q}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(D,F){if(this._cbs[D])for(var B=this._cbs[D],O=0;O<B.length;O+=1)B[O](F)},addEventListener:function(D,F){return this._cbs[D]||(this._cbs[D]=[]),this._cbs[D].push(F),function(){this.removeEventListener(D,F)}.bind(this)},removeEventListener:function(D,F){if(F){if(this._cbs[D]){for(var B=0,O=this._cbs[D].length;B<O;)this._cbs[D][B]===F&&(this._cbs[D].splice(B,1),B-=1,O-=1),B+=1;this._cbs[D].length||(this._cbs[D]=null)}}else this._cbs[D]=null}};var markerParser=function(){function D(F){for(var B,O=F.split("\r\n"),G={},j=0,q=0;q<O.length;q+=1)2===(B=O[q].split(":")).length&&(G[B[0]]=B[1].trim(),j+=1);if(0===j)throw new Error;return G}return function(F){for(var B=[],O=0;O<F.length;O+=1){var G=F[O],j={time:G.tm,duration:G.dr};try{j.payload=JSON.parse(F[O].cm)}catch{try{j.payload=D(F[O].cm)}catch{j.payload={name:F[O].cm}}}B.push(j)}return B}}(),ProjectInterface=function(){function D(F){this.compositions.push(F)}return function(){function F(B){for(var O=0,G=this.compositions.length;O<G;){if(this.compositions[O].data&&this.compositions[O].data.nm===B)return this.compositions[O].prepareFrame&&this.compositions[O].data.xt&&this.compositions[O].prepareFrame(this.currentFrame),this.compositions[O].compInterface;O+=1}return null}return F.compositions=[],F.currentFrame=0,F.registerComposition=D,F}}(),renderers={},registerRenderer=function(D,F){renderers[D]=F};function getRenderer(D){return renderers[D]}function _typeof$4(D){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(D){(D.wrapper||D.container)&&(this.wrapper=D.wrapper||D.container);var F="svg";D.animType?F=D.animType:D.renderer&&(F=D.renderer);var B=getRenderer(F);this.renderer=new B(this,D.rendererSettings),this.imagePreloader.setCacheType(F,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=F,this.loop=""===D.loop||null==D.loop||!0===D.loop||!1!==D.loop&&parseInt(D.loop,10),this.autoplay=!("autoplay"in D)||D.autoplay,this.name=D.name?D.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(D,"autoloadSegments")||D.autoloadSegments,this.assetsPath=D.assetsPath,this.initialSegment=D.initialSegment,D.audioFactory&&this.audioController.setAudioFactory(D.audioFactory),D.animationData?this.setupAnimation(D.animationData):D.path&&(this.path=-1!==D.path.lastIndexOf("\\")?D.path.substr(0,D.path.lastIndexOf("\\")+1):D.path.substr(0,D.path.lastIndexOf("/")+1),this.fileName=D.path.substr(D.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(D.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(D){dataManager.completeAnimation(D,this.configAnimation)},AnimationItem.prototype.setData=function(D,F){F&&"object"!==_typeof$4(F)&&(F=JSON.parse(F));var B={wrapper:D,animationData:F},O=D.attributes;B.path=O.getNamedItem("data-animation-path")?O.getNamedItem("data-animation-path").value:O.getNamedItem("data-bm-path")?O.getNamedItem("data-bm-path").value:O.getNamedItem("bm-path")?O.getNamedItem("bm-path").value:"",B.animType=O.getNamedItem("data-anim-type")?O.getNamedItem("data-anim-type").value:O.getNamedItem("data-bm-type")?O.getNamedItem("data-bm-type").value:O.getNamedItem("bm-type")?O.getNamedItem("bm-type").value:O.getNamedItem("data-bm-renderer")?O.getNamedItem("data-bm-renderer").value:O.getNamedItem("bm-renderer")?O.getNamedItem("bm-renderer").value:"canvas";var G=O.getNamedItem("data-anim-loop")?O.getNamedItem("data-anim-loop").value:O.getNamedItem("data-bm-loop")?O.getNamedItem("data-bm-loop").value:O.getNamedItem("bm-loop")?O.getNamedItem("bm-loop").value:"";"false"===G?B.loop=!1:"true"===G?B.loop=!0:""!==G&&(B.loop=parseInt(G,10));var j=O.getNamedItem("data-anim-autoplay")?O.getNamedItem("data-anim-autoplay").value:O.getNamedItem("data-bm-autoplay")?O.getNamedItem("data-bm-autoplay").value:!O.getNamedItem("bm-autoplay")||O.getNamedItem("bm-autoplay").value;B.autoplay="false"!==j,B.name=O.getNamedItem("data-name")?O.getNamedItem("data-name").value:O.getNamedItem("data-bm-name")?O.getNamedItem("data-bm-name").value:O.getNamedItem("bm-name")?O.getNamedItem("bm-name").value:"","false"===(O.getNamedItem("data-anim-prerender")?O.getNamedItem("data-anim-prerender").value:O.getNamedItem("data-bm-prerender")?O.getNamedItem("data-bm-prerender").value:O.getNamedItem("bm-prerender")?O.getNamedItem("bm-prerender").value:"")&&(B.prerender=!1),this.setParams(B)},AnimationItem.prototype.includeLayers=function(D){D.op>this.animationData.op&&(this.animationData.op=D.op,this.totalFrames=Math.floor(D.op-this.animationData.ip));var F,B,O=this.animationData.layers,G=O.length,j=D.layers,q=j.length;for(B=0;B<q;B+=1)for(F=0;F<G;){if(O[F].id===j[B].id){O[F]=j[B];break}F+=1}if((D.chars||D.fonts)&&(this.renderer.globalData.fontManager.addChars(D.chars),this.renderer.globalData.fontManager.addFonts(D.fonts,this.renderer.globalData.defs)),D.assets)for(G=D.assets.length,F=0;F<G;F+=1)this.animationData.assets.push(D.assets[F]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(D){this.animationData=D;var F=getExpressionsPlugin();F&&F.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var D=this.animationData.segments;if(!D||0===D.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var F=D.shift();this.timeCompleted=F.time*this.frameRate;var B=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(B,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(D){if(this.renderer)try{this.animationData=D,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(D),D.assets||(D.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(D.assets),this.markers=markerParser(D.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(F){this.triggerConfigError(F)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var D=getExpressionsPlugin();D&&D.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(D,F){this.renderer.updateContainerSize("number"==typeof D?D:void 0,"number"==typeof F?F:void 0)},AnimationItem.prototype.setSubframe=function(D){this.isSubframeEnabled=!!D},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(D){this.triggerRenderFrameError(D)}},AnimationItem.prototype.play=function(D){D&&this.name!==D||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(D){D&&this.name!==D||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(D){D&&this.name!==D||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(D){D&&this.name!==D||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(D){for(var F,B=0;B<this.markers.length;B+=1)if((F=this.markers[B]).payload&&F.payload.name===D)return F;return null},AnimationItem.prototype.goToAndStop=function(D,F,B){if(!B||this.name===B){var O=Number(D);if(isNaN(O)){var G=this.getMarkerData(D);G&&this.goToAndStop(G.time,!0)}else this.setCurrentRawFrameValue(F?D:D*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(D,F,B){if(!B||this.name===B){var O=Number(D);if(isNaN(O)){var G=this.getMarkerData(D);G&&(G.duration?this.playSegments([G.time,G.time+G.duration],!0):this.goToAndStop(G.time,!0))}else this.goToAndStop(O,F,B);this.play()}},AnimationItem.prototype.advanceTime=function(D){if(!0!==this.isPaused&&!1!==this.isLoaded){var F=this.currentRawFrame+D*this.frameModifier,B=!1;F>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?F>=this.totalFrames?(this.playCount+=1,this.checkSegments(F%this.totalFrames)||(this.setCurrentRawFrameValue(F%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(F):this.checkSegments(F>this.totalFrames?F%this.totalFrames:0)||(B=!0,F=this.totalFrames-1):F<0?this.checkSegments(F%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(B=!0,F=0):(this.setCurrentRawFrameValue(this.totalFrames+F%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(F),B&&(this.setCurrentRawFrameValue(F),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(D,F){this.playCount=0,D[1]<D[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=D[0]-D[1],this.timeCompleted=this.totalFrames,this.firstFrame=D[1],this.setCurrentRawFrameValue(this.totalFrames-.001-F)):D[1]>D[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=D[1]-D[0],this.timeCompleted=this.totalFrames,this.firstFrame=D[0],this.setCurrentRawFrameValue(.001+F)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(D,F){var B=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<D?B=D:this.currentRawFrame+this.firstFrame>F&&(B=F-D)),this.firstFrame=D,this.totalFrames=F-D,this.timeCompleted=this.totalFrames,-1!==B&&this.goToAndStop(B,!0)},AnimationItem.prototype.playSegments=function(D,F){if(F&&(this.segments.length=0),"object"===_typeof$4(D[0])){var B,O=D.length;for(B=0;B<O;B+=1)this.segments.push(D[B])}else this.segments.push(D);this.segments.length&&F&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(D){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),D&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(D){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),D),!0)},AnimationItem.prototype.destroy=function(D){D&&this.name!==D||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(D){this.currentRawFrame=D,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(D){this.playSpeed=D,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(D){this.playDirection=D<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(D,F){F&&this.name!==F||this.audioController.setVolume(D)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(D){D&&this.name!==D||this.audioController.mute()},AnimationItem.prototype.unmute=function(D){D&&this.name!==D||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(D){var F="";if(D.e)F=D.p;else if(this.assetsPath){var B=D.p;-1!==B.indexOf("images/")&&(B=B.split("/")[1]),F=this.assetsPath+B}else F=this.path,F+=D.u?D.u:"",F+=D.p;return F},AnimationItem.prototype.getAssetData=function(D){for(var F=0,B=this.assets.length;F<B;){if(D===this.assets[F].id)return this.assets[F];F+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(D){return D?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(D,F,B){try{this.renderer.getElementByPath(D).updateDocumentData(F,B)}catch{}},AnimationItem.prototype.trigger=function(D){if(this._cbs&&this._cbs[D])switch(D){case"enterFrame":this.triggerEvent(D,new BMEnterFrameEvent(D,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(D,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(D,new BMCompleteLoopEvent(D,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(D,new BMCompleteEvent(D,this.frameMult));break;case"segmentStart":this.triggerEvent(D,new BMSegmentStartEvent(D,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(D,new BMDestroyEvent(D,this));break;default:this.triggerEvent(D)}"enterFrame"===D&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(D,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===D&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(D,this.loop,this.playCount,this.frameMult)),"complete"===D&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(D,this.frameMult)),"segmentStart"===D&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(D,this.firstFrame,this.totalFrames)),"destroy"===D&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(D,this))},AnimationItem.prototype.triggerRenderFrameError=function(D){var F=new BMRenderFrameErrorEvent(D,this.currentFrame);this.triggerEvent("error",F),this.onError&&this.onError.call(this,F)},AnimationItem.prototype.triggerConfigError=function(D){var F=new BMConfigErrorEvent(D,this.currentFrame);this.triggerEvent("error",F),this.onError&&this.onError.call(this,F)};var animationManager=function(){var D={},F=[],B=0,O=0,G=0,j=!0,q=!1;function W(U){for(var X=0,Q=U.target;X<O;)F[X].animation===Q&&(F.splice(X,1),X-=1,O-=1,Q.isPaused||Y()),X+=1}function Z(U,X){if(!U)return null;for(var Q=0;Q<O;){if(F[Q].elem===U&&null!==F[Q].elem)return F[Q].animation;Q+=1}var it=new AnimationItem;return K(it,U),it.setData(U,X),it}function rt(){G+=1,J()}function Y(){G-=1}function K(U,X){U.addEventListener("destroy",W),U.addEventListener("_active",rt),U.addEventListener("_idle",Y),F.push({elem:X,animation:U}),O+=1}function et(U){var X,Q=U-B;for(X=0;X<O;X+=1)F[X].animation.advanceTime(Q);B=U,G&&!q?window.requestAnimationFrame(et):j=!0}function tt(U){B=U,window.requestAnimationFrame(et)}function J(){!q&&G&&j&&(window.requestAnimationFrame(tt),j=!1)}return D.registerAnimation=Z,D.loadAnimation=function(U){var X=new AnimationItem;return K(X,null),X.setParams(U),X},D.setSpeed=function(U,X){var Q;for(Q=0;Q<O;Q+=1)F[Q].animation.setSpeed(U,X)},D.setDirection=function(U,X){var Q;for(Q=0;Q<O;Q+=1)F[Q].animation.setDirection(U,X)},D.play=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.play(U)},D.pause=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.pause(U)},D.stop=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.stop(U)},D.togglePause=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.togglePause(U)},D.searchAnimations=function(U,X,Q){var it,at=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),st=at.length;for(it=0;it<st;it+=1)Q&&at[it].setAttribute("data-bm-type",Q),Z(at[it],U);if(X&&0===st){Q||(Q="svg");var ot=document.getElementsByTagName("body")[0];ot.innerText="";var ft=createTag("div");ft.style.width="100%",ft.style.height="100%",ft.setAttribute("data-bm-type",Q),ot.appendChild(ft),Z(ft,U)}},D.resize=function(){var U;for(U=0;U<O;U+=1)F[U].animation.resize()},D.goToAndStop=function(U,X,Q){var it;for(it=0;it<O;it+=1)F[it].animation.goToAndStop(U,X,Q)},D.destroy=function(U){var X;for(X=O-1;X>=0;X-=1)F[X].animation.destroy(U)},D.freeze=function(){q=!0},D.unfreeze=function(){q=!1,J()},D.setVolume=function(U,X){var Q;for(Q=0;Q<O;Q+=1)F[Q].animation.setVolume(U,X)},D.mute=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.mute(U)},D.unmute=function(U){var X;for(X=0;X<O;X+=1)F[X].animation.unmute(U)},D.getRegisteredAnimations=function(){var U,X=F.length,Q=[];for(U=0;U<X;U+=1)Q.push(F[U].animation);return Q},D}(),BezierFactory=function(){var D={getBezierEasing:function(Y,K,et,tt,J){var U=J||("bez_"+Y+"_"+K+"_"+et+"_"+tt).replace(/\./g,"p");if(F[U])return F[U];var X=new rt([Y,K,et,tt]);return F[U]=X,X}},F={},B=.1,O="function"==typeof Float32Array;function G(Y,K){return 1-3*K+3*Y}function j(Y,K){return 3*K-6*Y}function q(Y){return 3*Y}function W(Y,K,et){return((G(K,et)*Y+j(K,et))*Y+q(K))*Y}function Z(Y,K,et){return 3*G(K,et)*Y*Y+2*j(K,et)*Y+q(K)}function rt(Y){this._p=Y,this._mSampleValues=O?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return rt.prototype={get:function(Y){var K=this._p[0],et=this._p[1],tt=this._p[2],J=this._p[3];return this._precomputed||this._precompute(),K===et&&tt===J?Y:0===Y?0:1===Y?1:W(this._getTForX(Y),et,J)},_precompute:function(){var Y=this._p[0],K=this._p[1],et=this._p[2],tt=this._p[3];this._precomputed=!0,Y===K&&et===tt||this._calcSampleValues()},_calcSampleValues:function(){for(var Y=this._p[0],K=this._p[2],et=0;et<11;++et)this._mSampleValues[et]=W(et*B,Y,K)},_getTForX:function(Y){for(var K=this._p[0],et=this._p[2],tt=this._mSampleValues,J=0,U=1;10!==U&&tt[U]<=Y;++U)J+=B;var X=J+(Y-tt[--U])/(tt[U+1]-tt[U])*B,Q=Z(X,K,et);return Q>=.001?function(it,at,st,ot){for(var ft=0;ft<4;++ft){var pt=Z(at,st,ot);if(0===pt)return at;at-=(W(at,st,ot)-it)/pt}return at}(Y,X,K,et):0===Q?X:function(it,at,st,ot,ft){var pt,lt,ut=0;do{(pt=W(lt=at+(st-at)/2,ot,ft)-it)>0?st=lt:at=lt}while(Math.abs(pt)>1e-7&&++ut<10);return lt}(Y,J,J+B,K,et)}},D}(),pooling={double:function(D){return D.concat(createSizedArray(D.length))}},poolFactory=function(D,F,B){var O=0,G=D,j=createSizedArray(G);return{newElement:function(){return O?j[O-=1]:F()},release:function(q){O===G&&(j=pooling.double(j),G*=2),B&&B(q),j[O]=q,O+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(D){var F,B=D.lengths.length;for(F=0;F<B;F+=1)bezierLengthPool.release(D.lengths[F]);D.lengths.length=0});function bezFunction(){var D=Math;function F(rt,Y,K,et,tt,J){var U=rt*et+Y*tt+K*J-tt*et-J*rt-K*Y;return U>-.001&&U<.001}var B=function(rt,Y,K,et){var tt,J,U,X,Q,it,at=getDefaultCurveSegments(),st=0,ot=[],ft=[],pt=bezierLengthPool.newElement();for(U=K.length,tt=0;tt<at;tt+=1){for(Q=tt/(at-1),it=0,J=0;J<U;J+=1)X=bmPow(1-Q,3)*rt[J]+3*bmPow(1-Q,2)*Q*K[J]+3*(1-Q)*bmPow(Q,2)*et[J]+bmPow(Q,3)*Y[J],ot[J]=X,null!==ft[J]&&(it+=bmPow(ot[J]-ft[J],2)),ft[J]=ot[J];it&&(st+=it=bmSqrt(it)),pt.percents[tt]=Q,pt.lengths[tt]=st}return pt.addedLength=st,pt};function O(rt){this.segmentLength=0,this.points=new Array(rt)}function G(rt,Y){this.partialLength=rt,this.point=Y}var j,q=(j={},function(rt,Y,K,et){var tt=(rt[0]+"_"+rt[1]+"_"+Y[0]+"_"+Y[1]+"_"+K[0]+"_"+K[1]+"_"+et[0]+"_"+et[1]).replace(/\./g,"p");if(!j[tt]){var J,U,X,Q,it,at,st,ot=getDefaultCurveSegments(),ft=0,pt=null;2===rt.length&&(rt[0]!==Y[0]||rt[1]!==Y[1])&&F(rt[0],rt[1],Y[0],Y[1],rt[0]+K[0],rt[1]+K[1])&&F(rt[0],rt[1],Y[0],Y[1],Y[0]+et[0],Y[1]+et[1])&&(ot=2);var lt=new O(ot);for(X=K.length,J=0;J<ot;J+=1){for(st=createSizedArray(X),it=J/(ot-1),at=0,U=0;U<X;U+=1)Q=bmPow(1-it,3)*rt[U]+3*bmPow(1-it,2)*it*(rt[U]+K[U])+3*(1-it)*bmPow(it,2)*(Y[U]+et[U])+bmPow(it,3)*Y[U],st[U]=Q,null!==pt&&(at+=bmPow(st[U]-pt[U],2));ft+=at=bmSqrt(at),lt.points[J]=new G(at,st),pt=st}lt.segmentLength=ft,j[tt]=lt}return j[tt]});function W(rt,Y){var K=Y.percents,et=Y.lengths,tt=K.length,J=bmFloor((tt-1)*rt),U=rt*Y.addedLength,X=0;if(J===tt-1||0===J||U===et[J])return K[J];for(var Q=et[J]>U?-1:1,it=!0;it;)if(et[J]<=U&&et[J+1]>U?(X=(U-et[J])/(et[J+1]-et[J]),it=!1):J+=Q,J<0||J>=tt-1){if(J===tt-1)return K[J];it=!1}return K[J]+(K[J+1]-K[J])*X}var Z=createTypedArray("float32",8);return{getSegmentsLength:function(rt){var Y,K=segmentsLengthPool.newElement(),et=rt.c,tt=rt.v,J=rt.o,U=rt.i,X=rt._length,Q=K.lengths,it=0;for(Y=0;Y<X-1;Y+=1)Q[Y]=B(tt[Y],tt[Y+1],J[Y],U[Y+1]),it+=Q[Y].addedLength;return et&&X&&(Q[Y]=B(tt[Y],tt[0],J[Y],U[0]),it+=Q[Y].addedLength),K.totalLength=it,K},getNewSegment:function(rt,Y,K,et,tt,J,U){tt<0?tt=0:tt>1&&(tt=1);var X,Q=W(tt,U),it=W(J=J>1?1:J,U),at=rt.length,st=1-Q,ot=1-it,ft=st*st*st,pt=Q*st*st*3,lt=Q*Q*st*3,ut=Q*Q*Q,ct=st*st*ot,nt=Q*st*ot+st*Q*ot+st*st*it,bt=Q*Q*ot+st*Q*it+Q*st*it,gt=Q*Q*it,mt=st*ot*ot,vt=Q*ot*ot+st*it*ot+st*ot*it,Pt=Q*it*ot+st*it*it+Q*ot*it,dt=Q*it*it,ht=ot*ot*ot,yt=it*ot*ot+ot*it*ot+ot*ot*it,Et=it*it*ot+ot*it*it+it*ot*it,kt=it*it*it;for(X=0;X<at;X+=1)Z[4*X]=D.round(1e3*(ft*rt[X]+pt*K[X]+lt*et[X]+ut*Y[X]))/1e3,Z[4*X+1]=D.round(1e3*(ct*rt[X]+nt*K[X]+bt*et[X]+gt*Y[X]))/1e3,Z[4*X+2]=D.round(1e3*(mt*rt[X]+vt*K[X]+Pt*et[X]+dt*Y[X]))/1e3,Z[4*X+3]=D.round(1e3*(ht*rt[X]+yt*K[X]+Et*et[X]+kt*Y[X]))/1e3;return Z},getPointInSegment:function(rt,Y,K,et,tt,J){var U=W(tt,J),X=1-U;return[D.round(1e3*(X*X*X*rt[0]+(U*X*X+X*U*X+X*X*U)*K[0]+(U*U*X+X*U*U+U*X*U)*et[0]+U*U*U*Y[0]))/1e3,D.round(1e3*(X*X*X*rt[1]+(U*X*X+X*U*X+X*X*U)*K[1]+(U*U*X+X*U*U+U*X*U)*et[1]+U*U*U*Y[1]))/1e3]},buildBezierData:q,pointOnLine2D:F,pointOnLine3D:function(rt,Y,K,et,tt,J,U,X,Q){if(0===K&&0===J&&0===Q)return F(rt,Y,et,tt,U,X);var it,at=D.sqrt(D.pow(et-rt,2)+D.pow(tt-Y,2)+D.pow(J-K,2)),st=D.sqrt(D.pow(U-rt,2)+D.pow(X-Y,2)+D.pow(Q-K,2)),ot=D.sqrt(D.pow(U-et,2)+D.pow(X-tt,2)+D.pow(Q-J,2));return(it=at>st?at>ot?at-st-ot:ot-st-at:ot>st?ot-st-at:st-at-ot)>-1e-4&&it<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var D=initialDefaultFrame,F=Math.abs;function B(tt,J){var U,X=this.offsetTime;"multidimensional"===this.propType&&(U=createTypedArray("float32",this.pv.length));for(var Q,it,at,st,ot,ft,pt,lt,ut,ct=J.lastIndex,nt=ct,bt=this.keyframes.length-1,gt=!0;gt;){if(Q=this.keyframes[nt],it=this.keyframes[nt+1],nt===bt-1&&tt>=it.t-X){Q.h&&(Q=it),ct=0;break}if(it.t-X>tt){ct=nt;break}nt<bt-1?nt+=1:(ct=0,gt=!1)}at=this.keyframesMetadata[nt]||{};var mt,vt,Pt,dt,ht,yt,Et,kt,Tt,Mt,Rt,zt,Dt,Nt,Gt,Lt,$t,Ft,jt,Yt,Zt,Xt,ee,Kt,Jt,Qt,te,St=it.t-X,At=Q.t-X;if(Q.to){at.bezierData||(at.bezierData=bez.buildBezierData(Q.s,it.s||Q.e,Q.to,Q.ti));var xt=at.bezierData;if(tt>=St||tt<At){var wt=tt>=St?xt.points.length-1:0;for(ot=xt.points[wt].point.length,st=0;st<ot;st+=1)U[st]=xt.points[wt].point[st]}else{at.__fnct?ut=at.__fnct:(ut=BezierFactory.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y,Q.n).get,at.__fnct=ut),ft=ut((tt-At)/(St-At));var Ct,It=xt.segmentLength*ft,Bt=J.lastFrame<tt&&J._lastKeyframeIndex===nt?J._lastAddedLength:0;for(lt=J.lastFrame<tt&&J._lastKeyframeIndex===nt?J._lastPoint:0,gt=!0,pt=xt.points.length;gt;){if(Bt+=xt.points[lt].partialLength,0===It||0===ft||lt===xt.points.length-1){for(ot=xt.points[lt].point.length,st=0;st<ot;st+=1)U[st]=xt.points[lt].point[st];break}if(It>=Bt&&It<Bt+xt.points[lt+1].partialLength){for(Ct=(It-Bt)/xt.points[lt+1].partialLength,ot=xt.points[lt].point.length,st=0;st<ot;st+=1)U[st]=xt.points[lt].point[st]+(xt.points[lt+1].point[st]-xt.points[lt].point[st])*Ct;break}lt<pt-1?lt+=1:gt=!1}J._lastPoint=lt,J._lastAddedLength=Bt-xt.points[lt].partialLength,J._lastKeyframeIndex=nt}}else{var qt;if(bt=Q.s.length,mt=it.s||Q.e,this.sh&&1!==Q.h)if(tt>=St)U[0]=mt[0],U[1]=mt[1],U[2]=mt[2];else if(tt<=At)U[0]=Q.s[0],U[1]=Q.s[1],U[2]=Q.s[2];else{var Ut=O(Q.s),Wt=O(mt);vt=U,Dt=(tt-At)/(St-At),jt=[],(Gt=(Yt=(Rt=Ut)[0])*(Kt=(zt=Wt)[0])+(Zt=Rt[1])*(Jt=zt[1])+(Xt=Rt[2])*(Qt=zt[2])+(ee=Rt[3])*(te=zt[3]))<0&&(Gt=-Gt,Kt=-Kt,Jt=-Jt,Qt=-Qt,te=-te),1-Gt>1e-6?(Nt=Math.acos(Gt),Lt=Math.sin(Nt),$t=Math.sin((1-Dt)*Nt)/Lt,Ft=Math.sin(Dt*Nt)/Lt):($t=1-Dt,Ft=Dt),jt[0]=$t*Yt+Ft*Kt,jt[1]=$t*Zt+Ft*Jt,jt[2]=$t*Xt+Ft*Qt,jt[3]=$t*ee+Ft*te,dt=(Pt=jt)[0],ht=Pt[1],yt=Pt[2],Et=Pt[3],kt=Math.atan2(2*ht*Et-2*dt*yt,1-2*ht*ht-2*yt*yt),Tt=Math.asin(2*dt*ht+2*yt*Et),Mt=Math.atan2(2*dt*Et-2*ht*yt,1-2*dt*dt-2*yt*yt),vt[0]=kt/degToRads,vt[1]=Tt/degToRads,vt[2]=Mt/degToRads}else for(nt=0;nt<bt;nt+=1)1!==Q.h&&(tt>=St?ft=1:tt<At?ft=0:(Q.o.x.constructor===Array?(at.__fnct||(at.__fnct=[]),at.__fnct[nt]?ut=at.__fnct[nt]:(ut=BezierFactory.getBezierEasing(void 0===Q.o.x[nt]?Q.o.x[0]:Q.o.x[nt],void 0===Q.o.y[nt]?Q.o.y[0]:Q.o.y[nt],void 0===Q.i.x[nt]?Q.i.x[0]:Q.i.x[nt],void 0===Q.i.y[nt]?Q.i.y[0]:Q.i.y[nt]).get,at.__fnct[nt]=ut)):at.__fnct?ut=at.__fnct:(ut=BezierFactory.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,Q.keyframeMetadata=ut),ft=ut((tt-At)/(St-At)))),mt=it.s||Q.e,qt=1===Q.h?Q.s[nt]:Q.s[nt]+(mt[nt]-Q.s[nt])*ft,"multidimensional"===this.propType?U[nt]=qt:U=qt}return J.lastIndex=ct,U}function O(tt){var J=tt[0]*degToRads,U=tt[1]*degToRads,X=tt[2]*degToRads,Q=Math.cos(J/2),it=Math.cos(U/2),at=Math.cos(X/2),st=Math.sin(J/2),ot=Math.sin(U/2),ft=Math.sin(X/2);return[st*ot*at+Q*it*ft,st*it*at+Q*ot*ft,Q*ot*at-st*it*ft,Q*it*at-st*ot*ft]}function G(){var tt=this.comp.renderedFrame-this.offsetTime,J=this.keyframes[0].t-this.offsetTime,U=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(tt===this._caching.lastFrame||this._caching.lastFrame!==D&&(this._caching.lastFrame>=U&&tt>=U||this._caching.lastFrame<J&&tt<J))){this._caching.lastFrame>=tt&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var X=this.interpolateValue(tt,this._caching);this.pv=X}return this._caching.lastFrame=tt,this.pv}function j(tt){var J;if("unidimensional"===this.propType)F(this.v-(J=tt*this.mult))>1e-5&&(this.v=J,this._mdf=!0);else for(var U=0,X=this.v.length;U<X;)F(this.v[U]-(J=tt[U]*this.mult))>1e-5&&(this.v[U]=J,this._mdf=!0),U+=1}function q(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var tt;this.lock=!0,this._mdf=this._isFirstFrame;var J=this.effectsSequence.length,U=this.kf?this.pv:this.data.k;for(tt=0;tt<J;tt+=1)U=this.effectsSequence[tt](U);this.setVValue(U),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function W(tt){this.effectsSequence.push(tt),this.container.addDynamicProperty(this)}function Z(tt,J,U,X){this.propType="unidimensional",this.mult=U||1,this.data=J,this.v=U?J.k*U:J.k,this.pv=J.k,this._mdf=!1,this.elem=tt,this.container=X,this.comp=tt.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=q,this.setVValue=j,this.addEffect=W}function rt(tt,J,U,X){var Q;this.propType="multidimensional",this.mult=U||1,this.data=J,this._mdf=!1,this.elem=tt,this.container=X,this.comp=tt.comp,this.k=!1,this.kf=!1,this.frameId=-1;var it=J.k.length;for(this.v=createTypedArray("float32",it),this.pv=createTypedArray("float32",it),this.vel=createTypedArray("float32",it),Q=0;Q<it;Q+=1)this.v[Q]=J.k[Q]*this.mult,this.pv[Q]=J.k[Q];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=q,this.setVValue=j,this.addEffect=W}function Y(tt,J,U,X){this.propType="unidimensional",this.keyframes=J.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.frameId=-1,this._caching={lastFrame:D,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=J,this.mult=U||1,this.elem=tt,this.container=X,this.comp=tt.comp,this.v=D,this.pv=D,this._isFirstFrame=!0,this.getValue=q,this.setVValue=j,this.interpolateValue=B,this.effectsSequence=[G.bind(this)],this.addEffect=W}function K(tt,J,U,X){var Q;this.propType="multidimensional";var it,at,st,ot,ft=J.k.length;for(Q=0;Q<ft-1;Q+=1)J.k[Q].to&&J.k[Q].s&&J.k[Q+1]&&J.k[Q+1].s&&(at=J.k[Q+1].s,st=J.k[Q].to,ot=J.k[Q].ti,(2===(it=J.k[Q].s).length&&(it[0]!==at[0]||it[1]!==at[1])&&bez.pointOnLine2D(it[0],it[1],at[0],at[1],it[0]+st[0],it[1]+st[1])&&bez.pointOnLine2D(it[0],it[1],at[0],at[1],at[0]+ot[0],at[1]+ot[1])||3===it.length&&(it[0]!==at[0]||it[1]!==at[1]||it[2]!==at[2])&&bez.pointOnLine3D(it[0],it[1],it[2],at[0],at[1],at[2],it[0]+st[0],it[1]+st[1],it[2]+st[2])&&bez.pointOnLine3D(it[0],it[1],it[2],at[0],at[1],at[2],at[0]+ot[0],at[1]+ot[1],at[2]+ot[2]))&&(J.k[Q].to=null,J.k[Q].ti=null),it[0]===at[0]&&it[1]===at[1]&&0===st[0]&&0===st[1]&&0===ot[0]&&0===ot[1]&&(2===it.length||it[2]===at[2]&&0===st[2]&&0===ot[2])&&(J.k[Q].to=null,J.k[Q].ti=null));this.effectsSequence=[G.bind(this)],this.data=J,this.keyframes=J.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=U||1,this.elem=tt,this.container=X,this.comp=tt.comp,this.getValue=q,this.setVValue=j,this.interpolateValue=B,this.frameId=-1;var pt=J.k[0].s.length;for(this.v=createTypedArray("float32",pt),this.pv=createTypedArray("float32",pt),Q=0;Q<pt;Q+=1)this.v[Q]=D,this.pv[Q]=D;this._caching={lastFrame:D,lastIndex:0,value:createTypedArray("float32",pt)},this.addEffect=W}return{getProp:function(tt,J,U,X,Q){var it;if(J.k.length)if("number"==typeof J.k[0])it=new rt(tt,J,X,Q);else switch(U){case 0:it=new Y(tt,J,X,Q);break;case 1:it=new K(tt,J,X,Q)}else it=new Z(tt,J,X,Q);return it.effectsSequence.length&&Q.addDynamicProperty(it),it}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(D){-1===this.dynamicProperties.indexOf(D)&&(this.dynamicProperties.push(D),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var D;this._mdf=!1;var F=this.dynamicProperties.length;for(D=0;D<F;D+=1)this.dynamicProperties[D].getValue(),this.dynamicProperties[D]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(D){this.container=D,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(D,F){this.c=D,this.setLength(F);for(var B=0;B<F;)this.v[B]=pointPool.newElement(),this.o[B]=pointPool.newElement(),this.i[B]=pointPool.newElement(),B+=1},ShapePath.prototype.setLength=function(D){for(;this._maxLength<D;)this.doubleArrayLength();this._length=D},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(D,F,B,O,G){var j;switch(this._length=Math.max(this._length,O+1),this._length>=this._maxLength&&this.doubleArrayLength(),B){case"v":j=this.v;break;case"i":j=this.i;break;case"o":j=this.o;break;default:j=[]}(!j[O]||j[O]&&!G)&&(j[O]=pointPool.newElement()),j[O][0]=D,j[O][1]=F},ShapePath.prototype.setTripleAt=function(D,F,B,O,G,j,q,W){this.setXYAt(D,F,"v",q,W),this.setXYAt(B,O,"o",q,W),this.setXYAt(G,j,"i",q,W)},ShapePath.prototype.reverse=function(){var D=new ShapePath;D.setPathData(this.c,this._length);var F=this.v,B=this.o,O=this.i,G=0;this.c&&(D.setTripleAt(F[0][0],F[0][1],O[0][0],O[0][1],B[0][0],B[0][1],0,!1),G=1);var j,q=this._length-1,W=this._length;for(j=G;j<W;j+=1)D.setTripleAt(F[q][0],F[q][1],O[q][0],O[q][1],B[q][0],B[q][1],j,!1),q-=1;return D},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(D){var F,B=D._length;for(F=0;F<B;F+=1)pointPool.release(D.v[F]),pointPool.release(D.i[F]),pointPool.release(D.o[F]),D.v[F]=null,D.i[F]=null,D.o[F]=null;D._length=0,D.c=!1}),factory.clone=function(D){var F,B=factory.newElement(),O=void 0===D._length?D.v.length:D._length;for(B.setLength(O),B.c=D.c,F=0;F<O;F+=1)B.setTripleAt(D.v[F][0],D.v[F][1],D.o[F][0],D.o[F][1],D.i[F][0],D.i[F][1],F);return B},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(D){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=D,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var D;for(D=0;D<this._length;D+=1)shapePool.release(this.shapes[D]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(D){var F,B=D._length;for(F=0;F<B;F+=1)shapePool.release(D.shapes[F]);D._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=D,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var D=-999999;function F(tt,J,U){var X,Q,it,at,st,ot,ft,pt,ut=U.lastIndex,ct=this.keyframes;if(tt<ct[0].t-this.offsetTime)X=ct[0].s[0],it=!0,ut=0;else if(tt>=ct[ct.length-1].t-this.offsetTime)X=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],it=!0;else{for(var nt,bt,gt,mt=ut,vt=ct.length-1,Pt=!0;Pt&&(nt=ct[mt],!((bt=ct[mt+1]).t-this.offsetTime>tt));)mt<vt-1?mt+=1:Pt=!1;if(gt=this.keyframesMetadata[mt]||{},ut=mt,!(it=1===nt.h)){if(tt>=bt.t-this.offsetTime)pt=1;else if(tt<nt.t-this.offsetTime)pt=0;else{var dt;gt.__fnct?dt=gt.__fnct:(dt=BezierFactory.getBezierEasing(nt.o.x,nt.o.y,nt.i.x,nt.i.y).get,gt.__fnct=dt),pt=dt((tt-(nt.t-this.offsetTime))/(bt.t-this.offsetTime-(nt.t-this.offsetTime)))}Q=bt.s?bt.s[0]:nt.e[0]}X=nt.s[0]}for(ot=J._length,ft=X.i[0].length,U.lastIndex=ut,at=0;at<ot;at+=1)for(st=0;st<ft;st+=1)J.i[at][st]=it?X.i[at][st]:X.i[at][st]+(Q.i[at][st]-X.i[at][st])*pt,J.o[at][st]=it?X.o[at][st]:X.o[at][st]+(Q.o[at][st]-X.o[at][st])*pt,J.v[at][st]=it?X.v[at][st]:X.v[at][st]+(Q.v[at][st]-X.v[at][st])*pt}function B(){var tt=this.comp.renderedFrame-this.offsetTime,J=this.keyframes[0].t-this.offsetTime,U=this.keyframes[this.keyframes.length-1].t-this.offsetTime,X=this._caching.lastFrame;return X!==D&&(X<J&&tt<J||X>U&&tt>U)||(this._caching.lastIndex=X<tt?this._caching.lastIndex:0,this.interpolateShape(tt,this.pv,this._caching)),this._caching.lastFrame=tt,this.pv}function O(){this.paths=this.localShapeCollection}function G(tt){(function(J,U){if(J._length!==U._length||J.c!==U.c)return!1;var X,Q=J._length;for(X=0;X<Q;X+=1)if(J.v[X][0]!==U.v[X][0]||J.v[X][1]!==U.v[X][1]||J.o[X][0]!==U.o[X][0]||J.o[X][1]!==U.o[X][1]||J.i[X][0]!==U.i[X][0]||J.i[X][1]!==U.i[X][1])return!1;return!0})(this.v,tt)||(this.v=shapePool.clone(tt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function j(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var tt,J;this.lock=!0,this._mdf=!1,tt=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var U=this.effectsSequence.length;for(J=0;J<U;J+=1)tt=this.effectsSequence[J](tt);this.setVValue(tt),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function q(tt,J,U){this.propType="shape",this.comp=tt.comp,this.container=tt,this.elem=tt,this.data=J,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===U?J.pt.k:J.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=O,this.effectsSequence=[]}function W(tt){this.effectsSequence.push(tt),this.container.addDynamicProperty(this)}function Z(tt,J,U){this.propType="shape",this.comp=tt.comp,this.elem=tt,this.container=tt,this.offsetTime=tt.data.st,this.keyframes=3===U?J.pt.k:J.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var X=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,X),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=D,this.reset=O,this._caching={lastFrame:D,lastIndex:0},this.effectsSequence=[B.bind(this)]}q.prototype.interpolateShape=F,q.prototype.getValue=j,q.prototype.setVValue=G,q.prototype.addEffect=W,Z.prototype.getValue=j,Z.prototype.interpolateShape=F,Z.prototype.setVValue=G,Z.prototype.addEffect=W;var rt=function(){var tt=roundCorner;function J(U,X){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=X.d,this.elem=U,this.comp=U.comp,this.frameId=-1,this.initDynamicPropertyContainer(U),this.p=PropertyFactory.getProp(U,X.p,1,0,this),this.s=PropertyFactory.getProp(U,X.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return J.prototype={reset:O,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var U=this.p.v[0],X=this.p.v[1],Q=this.s.v[0]/2,it=this.s.v[1]/2,at=3!==this.d,st=this.v;st.v[0][0]=U,st.v[0][1]=X-it,st.v[1][0]=at?U+Q:U-Q,st.v[1][1]=X,st.v[2][0]=U,st.v[2][1]=X+it,st.v[3][0]=at?U-Q:U+Q,st.v[3][1]=X,st.i[0][0]=at?U-Q*tt:U+Q*tt,st.i[0][1]=X-it,st.i[1][0]=at?U+Q:U-Q,st.i[1][1]=X-it*tt,st.i[2][0]=at?U+Q*tt:U-Q*tt,st.i[2][1]=X+it,st.i[3][0]=at?U-Q:U+Q,st.i[3][1]=X+it*tt,st.o[0][0]=at?U+Q*tt:U-Q*tt,st.o[0][1]=X-it,st.o[1][0]=at?U+Q:U-Q,st.o[1][1]=X+it*tt,st.o[2][0]=at?U-Q*tt:U+Q*tt,st.o[2][1]=X+it,st.o[3][0]=at?U-Q:U+Q,st.o[3][1]=X-it*tt}},extendPrototype([DynamicPropertyContainer],J),J}(),Y=function(){function tt(J,U){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=J,this.comp=J.comp,this.data=U,this.frameId=-1,this.d=U.d,this.initDynamicPropertyContainer(J),1===U.sy?(this.ir=PropertyFactory.getProp(J,U.ir,0,0,this),this.is=PropertyFactory.getProp(J,U.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(J,U.pt,0,0,this),this.p=PropertyFactory.getProp(J,U.p,1,0,this),this.r=PropertyFactory.getProp(J,U.r,0,degToRads,this),this.or=PropertyFactory.getProp(J,U.or,0,0,this),this.os=PropertyFactory.getProp(J,U.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return tt.prototype={reset:O,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var J,U,X,Q,it=2*Math.floor(this.pt.v),at=2*Math.PI/it,st=!0,ot=this.or.v,ft=this.ir.v,pt=this.os.v,lt=this.is.v,ut=2*Math.PI*ot/(2*it),ct=2*Math.PI*ft/(2*it),nt=-Math.PI/2;nt+=this.r.v;var bt=3===this.data.d?-1:1;for(this.v._length=0,J=0;J<it;J+=1){X=st?pt:lt,Q=st?ut:ct;var gt=(U=st?ot:ft)*Math.cos(nt),mt=U*Math.sin(nt),vt=0===gt&&0===mt?0:mt/Math.sqrt(gt*gt+mt*mt),Pt=0===gt&&0===mt?0:-gt/Math.sqrt(gt*gt+mt*mt);this.v.setTripleAt(gt+=+this.p.v[0],mt+=+this.p.v[1],gt-vt*Q*X*bt,mt-Pt*Q*X*bt,gt+vt*Q*X*bt,mt+Pt*Q*X*bt,J,!0),st=!st,nt+=at*bt}},convertPolygonToPath:function(){var J,U=Math.floor(this.pt.v),X=2*Math.PI/U,Q=this.or.v,it=this.os.v,at=2*Math.PI*Q/(4*U),st=.5*-Math.PI,ot=3===this.data.d?-1:1;for(st+=this.r.v,this.v._length=0,J=0;J<U;J+=1){var ft=Q*Math.cos(st),pt=Q*Math.sin(st),lt=0===ft&&0===pt?0:pt/Math.sqrt(ft*ft+pt*pt),ut=0===ft&&0===pt?0:-ft/Math.sqrt(ft*ft+pt*pt);this.v.setTripleAt(ft+=+this.p.v[0],pt+=+this.p.v[1],ft-lt*at*it*ot,pt-ut*at*it*ot,ft+lt*at*it*ot,pt+ut*at*it*ot,J,!0),st+=X*ot}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],tt),tt}(),K=function(){function tt(J,U){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=J,this.comp=J.comp,this.frameId=-1,this.d=U.d,this.initDynamicPropertyContainer(J),this.p=PropertyFactory.getProp(J,U.p,1,0,this),this.s=PropertyFactory.getProp(J,U.s,1,0,this),this.r=PropertyFactory.getProp(J,U.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return tt.prototype={convertRectToPath:function(){var J=this.p.v[0],U=this.p.v[1],X=this.s.v[0]/2,Q=this.s.v[1]/2,it=bmMin(X,Q,this.r.v),at=it*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(J+X,U-Q+it,J+X,U-Q+it,J+X,U-Q+at,0,!0),this.v.setTripleAt(J+X,U+Q-it,J+X,U+Q-at,J+X,U+Q-it,1,!0),0!==it?(this.v.setTripleAt(J+X-it,U+Q,J+X-it,U+Q,J+X-at,U+Q,2,!0),this.v.setTripleAt(J-X+it,U+Q,J-X+at,U+Q,J-X+it,U+Q,3,!0),this.v.setTripleAt(J-X,U+Q-it,J-X,U+Q-it,J-X,U+Q-at,4,!0),this.v.setTripleAt(J-X,U-Q+it,J-X,U-Q+at,J-X,U-Q+it,5,!0),this.v.setTripleAt(J-X+it,U-Q,J-X+it,U-Q,J-X+at,U-Q,6,!0),this.v.setTripleAt(J+X-it,U-Q,J+X-at,U-Q,J+X-it,U-Q,7,!0)):(this.v.setTripleAt(J-X,U+Q,J-X+at,U+Q,J-X,U+Q,2),this.v.setTripleAt(J-X,U-Q,J-X,U-Q+at,J-X,U-Q,3))):(this.v.setTripleAt(J+X,U-Q+it,J+X,U-Q+at,J+X,U-Q+it,0,!0),0!==it?(this.v.setTripleAt(J+X-it,U-Q,J+X-it,U-Q,J+X-at,U-Q,1,!0),this.v.setTripleAt(J-X+it,U-Q,J-X+at,U-Q,J-X+it,U-Q,2,!0),this.v.setTripleAt(J-X,U-Q+it,J-X,U-Q+it,J-X,U-Q+at,3,!0),this.v.setTripleAt(J-X,U+Q-it,J-X,U+Q-at,J-X,U+Q-it,4,!0),this.v.setTripleAt(J-X+it,U+Q,J-X+it,U+Q,J-X+at,U+Q,5,!0),this.v.setTripleAt(J+X-it,U+Q,J+X-at,U+Q,J+X-it,U+Q,6,!0),this.v.setTripleAt(J+X,U+Q-it,J+X,U+Q-it,J+X,U+Q-at,7,!0)):(this.v.setTripleAt(J-X,U-Q,J-X+at,U-Q,J-X,U-Q,1,!0),this.v.setTripleAt(J-X,U+Q,J-X,U+Q-at,J-X,U+Q,2,!0),this.v.setTripleAt(J+X,U+Q,J+X-at,U+Q,J+X,U+Q,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:O},extendPrototype([DynamicPropertyContainer],tt),tt}();return{getShapeProp:function(tt,J,U){var X;return 3===U||4===U?X=(3===U?J.pt:J.ks).k.length?new Z(tt,J,U):new q(tt,J,U):5===U?X=new K(tt,J):6===U?X=new rt(tt,J):7===U&&(X=new Y(tt,J)),X.k&&tt.addDynamicProperty(X),X},getConstructorFunction:function(){return q},getKeyframedConstructorFunction:function(){return Z}}}(),Matrix=function(){var D=Math.cos,F=Math.sin,B=Math.tan,O=Math.round;function G(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function j(dt){if(0===dt)return this;var ht=D(dt),yt=F(dt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function q(dt){if(0===dt)return this;var ht=D(dt),yt=F(dt);return this._t(1,0,0,0,0,ht,-yt,0,0,yt,ht,0,0,0,0,1)}function W(dt){if(0===dt)return this;var ht=D(dt),yt=F(dt);return this._t(ht,0,yt,0,0,1,0,0,-yt,0,ht,0,0,0,0,1)}function Z(dt){if(0===dt)return this;var ht=D(dt),yt=F(dt);return this._t(ht,-yt,0,0,yt,ht,0,0,0,0,1,0,0,0,0,1)}function rt(dt,ht){return this._t(1,ht,dt,1,0,0)}function Y(dt,ht){return this.shear(B(dt),B(ht))}function K(dt,ht){var yt=D(ht),Et=F(ht);return this._t(yt,Et,0,0,-Et,yt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,B(dt),1,0,0,0,0,1,0,0,0,0,1)._t(yt,-Et,0,0,Et,yt,0,0,0,0,1,0,0,0,0,1)}function et(dt,ht,yt){return yt||0===yt||(yt=1),1===dt&&1===ht&&1===yt?this:this._t(dt,0,0,0,0,ht,0,0,0,0,yt,0,0,0,0,1)}function tt(dt,ht,yt,Et,kt,Tt,Mt,St,At,xt,wt,Ct,It,Bt,Vt,Ot){return this.props[0]=dt,this.props[1]=ht,this.props[2]=yt,this.props[3]=Et,this.props[4]=kt,this.props[5]=Tt,this.props[6]=Mt,this.props[7]=St,this.props[8]=At,this.props[9]=xt,this.props[10]=wt,this.props[11]=Ct,this.props[12]=It,this.props[13]=Bt,this.props[14]=Vt,this.props[15]=Ot,this}function J(dt,ht,yt){return yt=yt||0,0!==dt||0!==ht||0!==yt?this._t(1,0,0,0,0,1,0,0,0,0,1,0,dt,ht,yt,1):this}function U(dt,ht,yt,Et,kt,Tt,Mt,St,At,xt,wt,Ct,It,Bt,Vt,Ot){var _t=this.props;if(1===dt&&0===ht&&0===yt&&0===Et&&0===kt&&1===Tt&&0===Mt&&0===St&&0===At&&0===xt&&1===wt&&0===Ct)return _t[12]=_t[12]*dt+_t[15]*It,_t[13]=_t[13]*Tt+_t[15]*Bt,_t[14]=_t[14]*wt+_t[15]*Vt,_t[15]*=Ot,this._identityCalculated=!1,this;var Ht=_t[0],qt=_t[1],Ut=_t[2],Wt=_t[3],Rt=_t[4],zt=_t[5],Dt=_t[6],Nt=_t[7],Gt=_t[8],Lt=_t[9],$t=_t[10],Ft=_t[11],jt=_t[12],Yt=_t[13],Zt=_t[14],Xt=_t[15];return _t[0]=Ht*dt+qt*kt+Ut*At+Wt*It,_t[1]=Ht*ht+qt*Tt+Ut*xt+Wt*Bt,_t[2]=Ht*yt+qt*Mt+Ut*wt+Wt*Vt,_t[3]=Ht*Et+qt*St+Ut*Ct+Wt*Ot,_t[4]=Rt*dt+zt*kt+Dt*At+Nt*It,_t[5]=Rt*ht+zt*Tt+Dt*xt+Nt*Bt,_t[6]=Rt*yt+zt*Mt+Dt*wt+Nt*Vt,_t[7]=Rt*Et+zt*St+Dt*Ct+Nt*Ot,_t[8]=Gt*dt+Lt*kt+$t*At+Ft*It,_t[9]=Gt*ht+Lt*Tt+$t*xt+Ft*Bt,_t[10]=Gt*yt+Lt*Mt+$t*wt+Ft*Vt,_t[11]=Gt*Et+Lt*St+$t*Ct+Ft*Ot,_t[12]=jt*dt+Yt*kt+Zt*At+Xt*It,_t[13]=jt*ht+Yt*Tt+Zt*xt+Xt*Bt,_t[14]=jt*yt+Yt*Mt+Zt*wt+Xt*Vt,_t[15]=jt*Et+Yt*St+Zt*Ct+Xt*Ot,this._identityCalculated=!1,this}function X(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function Q(dt){for(var ht=0;ht<16;){if(dt.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function it(dt){var ht;for(ht=0;ht<16;ht+=1)dt.props[ht]=this.props[ht];return dt}function at(dt){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=dt[ht]}function st(dt,ht,yt){return{x:dt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],y:dt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],z:dt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}}function ot(dt,ht,yt){return dt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12]}function ft(dt,ht,yt){return dt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13]}function pt(dt,ht,yt){return dt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]}function lt(){var dt=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/dt,yt=-this.props[1]/dt,Et=-this.props[4]/dt,kt=this.props[0]/dt,Tt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/dt,Mt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/dt,St=new Matrix;return St.props[0]=ht,St.props[1]=yt,St.props[4]=Et,St.props[5]=kt,St.props[12]=Tt,St.props[13]=Mt,St}function ut(dt){return this.getInverseMatrix().applyToPointArray(dt[0],dt[1],dt[2]||0)}function ct(dt){var ht,yt=dt.length,Et=[];for(ht=0;ht<yt;ht+=1)Et[ht]=ut(dt[ht]);return Et}function nt(dt,ht,yt){var Et=createTypedArray("float32",6);if(this.isIdentity())Et[0]=dt[0],Et[1]=dt[1],Et[2]=ht[0],Et[3]=ht[1],Et[4]=yt[0],Et[5]=yt[1];else{var kt=this.props[0],Tt=this.props[1],Mt=this.props[4],St=this.props[5],At=this.props[12],xt=this.props[13];Et[0]=dt[0]*kt+dt[1]*Mt+At,Et[1]=dt[0]*Tt+dt[1]*St+xt,Et[2]=ht[0]*kt+ht[1]*Mt+At,Et[3]=ht[0]*Tt+ht[1]*St+xt,Et[4]=yt[0]*kt+yt[1]*Mt+At,Et[5]=yt[0]*Tt+yt[1]*St+xt}return Et}function bt(dt,ht,yt){return this.isIdentity()?[dt,ht,yt]:[dt*this.props[0]+ht*this.props[4]+yt*this.props[8]+this.props[12],dt*this.props[1]+ht*this.props[5]+yt*this.props[9]+this.props[13],dt*this.props[2]+ht*this.props[6]+yt*this.props[10]+this.props[14]]}function gt(dt,ht){if(this.isIdentity())return dt+","+ht;var yt=this.props;return Math.round(100*(dt*yt[0]+ht*yt[4]+yt[12]))/100+","+Math.round(100*(dt*yt[1]+ht*yt[5]+yt[13]))/100}function mt(){for(var dt=0,ht=this.props,yt="matrix3d(";dt<16;)yt+=O(1e4*ht[dt])/1e4,yt+=15===dt?")":",",dt+=1;return yt}function vt(dt){return dt<1e-6&&dt>0||dt>-1e-6&&dt<0?O(1e4*dt)/1e4:dt}function Pt(){var dt=this.props;return"matrix("+vt(dt[0])+","+vt(dt[1])+","+vt(dt[4])+","+vt(dt[5])+","+vt(dt[12])+","+vt(dt[13])+")"}return function(){this.reset=G,this.rotate=j,this.rotateX=q,this.rotateY=W,this.rotateZ=Z,this.skew=Y,this.skewFromAxis=K,this.shear=rt,this.scale=et,this.setTransform=tt,this.translate=J,this.transform=U,this.applyToPoint=st,this.applyToX=ot,this.applyToY=ft,this.applyToZ=pt,this.applyToPointArray=bt,this.applyToTriplePoints=nt,this.applyToPointStringified=gt,this.toCSS=mt,this.to2dCSS=Pt,this.clone=it,this.cloneFromProps=at,this.equals=Q,this.inversePoints=ct,this.inversePoint=ut,this.getInverseMatrix=lt,this._t=this.transform,this.isIdentity=X,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(D){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(D){setLocationHref(D)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(D){setSubframeEnabled(D)}function setPrefix(D){setIdPrefix(D)}function loadAnimation(D){return!0===standalone&&(D.animationData=JSON.parse(animationData)),animationManager.loadAnimation(D)}function setQuality(D){if("string"==typeof D)switch(D){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(D)&&D>1&&setDefaultCurveSegments(D);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(D,F){"expressions"===D&&setExpressionsPlugin(F)}function getFactory(D){switch(D){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(D){for(var F=queryString.split("&"),B=0;B<F.length;B+=1){var O=F[B].split("=");if(decodeURIComponent(O[0])==D)return decodeURIComponent(O[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(D){}var ShapeModifiers=(D={},F={},D.registerModifier=function(B,O){F[B]||(F[B]=O)},D.getModifier=function(B,O,G){return new F[B](O,G)},D),D,F;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(D){if(!this.closed){D.sh.container.addDynamicProperty(D.sh);var F={shape:D.sh,data:D,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(F),this.addShapeToModifier(F),this._isAnimated&&D.setAsAnimated()}},ShapeModifier.prototype.init=function(D,F){this.shapes=[],this.elem=D,this.initDynamicPropertyContainer(D),this.initModifierProperties(D,F),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(D,F){this.s=PropertyFactory.getProp(D,F.s,0,.01,this),this.e=PropertyFactory.getProp(D,F.e,0,.01,this),this.o=PropertyFactory.getProp(D,F.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=F.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(D){D.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(D,F,B,O,G){var j=[];F<=1?j.push({s:D,e:F}):D>=1?j.push({s:D-1,e:F-1}):(j.push({s:D,e:1}),j.push({s:0,e:F-1}));var q,W,Z=[],rt=j.length;for(q=0;q<rt;q+=1)(W=j[q]).e*G<O||W.s*G>O+B||Z.push([W.s*G<=O?0:(W.s*G-O)/B,W.e*G>=O+B?1:(W.e*G-O)/B]);return Z.length||Z.push([0,0]),Z},TrimModifier.prototype.releasePathsData=function(D){var F,B=D.length;for(F=0;F<B;F+=1)segmentsLengthPool.release(D[F]);return D.length=0,D},TrimModifier.prototype.processShapes=function(D){var F,B,O,G;if(this._mdf||D){var j=this.o.v%360/360;if(j<0&&(j+=1),(F=this.s.v>1?1+j:this.s.v<0?0+j:this.s.v+j)>(B=this.e.v>1?1+j:this.e.v<0?0+j:this.e.v+j)){var q=F;F=B,B=q}F=1e-4*Math.round(1e4*F),B=1e-4*Math.round(1e4*B),this.sValue=F,this.eValue=B}else F=this.sValue,B=this.eValue;var W,Z,rt,Y,K,et=this.shapes.length,tt=0;if(B===F)for(G=0;G<et;G+=1)this.shapes[G].localShapeCollection.releaseShapes(),this.shapes[G].shape._mdf=!0,this.shapes[G].shape.paths=this.shapes[G].localShapeCollection,this._mdf&&(this.shapes[G].pathsData.length=0);else if(1===B&&0===F||0===B&&1===F){if(this._mdf)for(G=0;G<et;G+=1)this.shapes[G].pathsData.length=0,this.shapes[G].shape._mdf=!0}else{var J,U,X=[];for(G=0;G<et;G+=1)if((J=this.shapes[G]).shape._mdf||this._mdf||D||2===this.m){if(Z=(O=J.shape.paths)._length,K=0,!J.shape._mdf&&J.pathsData.length)K=J.totalShapeLength;else{for(rt=this.releasePathsData(J.pathsData),W=0;W<Z;W+=1)Y=bez.getSegmentsLength(O.shapes[W]),rt.push(Y),K+=Y.totalLength;J.totalShapeLength=K,J.pathsData=rt}tt+=K,J.shape._mdf=!0}else J.shape.paths=J.localShapeCollection;var Q,it=F,at=B,st=0;for(G=et-1;G>=0;G-=1)if((J=this.shapes[G]).shape._mdf){for((U=J.localShapeCollection).releaseShapes(),2===this.m&&et>1?(Q=this.calculateShapeEdges(F,B,J.totalShapeLength,st,tt),st+=J.totalShapeLength):Q=[[it,at]],Z=Q.length,W=0;W<Z;W+=1){it=Q[W][0],at=Q[W][1],X.length=0,at<=1?X.push({s:J.totalShapeLength*it,e:J.totalShapeLength*at}):it>=1?X.push({s:J.totalShapeLength*(it-1),e:J.totalShapeLength*(at-1)}):(X.push({s:J.totalShapeLength*it,e:J.totalShapeLength}),X.push({s:0,e:J.totalShapeLength*(at-1)}));var ot=this.addShapes(J,X[0]);if(X[0].s!==X[0].e){if(X.length>1)if(J.shape.paths.shapes[J.shape.paths._length-1].c){var ft=ot.pop();this.addPaths(ot,U),ot=this.addShapes(J,X[1],ft)}else this.addPaths(ot,U),ot=this.addShapes(J,X[1]);this.addPaths(ot,U)}}J.shape.paths=U}}},TrimModifier.prototype.addPaths=function(D,F){var B,O=D.length;for(B=0;B<O;B+=1)F.addShape(D[B])},TrimModifier.prototype.addSegment=function(D,F,B,O,G,j,q){G.setXYAt(F[0],F[1],"o",j),G.setXYAt(B[0],B[1],"i",j+1),q&&G.setXYAt(D[0],D[1],"v",j),G.setXYAt(O[0],O[1],"v",j+1)},TrimModifier.prototype.addSegmentFromArray=function(D,F,B,O){F.setXYAt(D[1],D[5],"o",B),F.setXYAt(D[2],D[6],"i",B+1),O&&F.setXYAt(D[0],D[4],"v",B),F.setXYAt(D[3],D[7],"v",B+1)},TrimModifier.prototype.addShapes=function(D,F,B){var O,G,j,q,W,Z,rt,Y,K=D.pathsData,et=D.shape.paths.shapes,tt=D.shape.paths._length,J=0,U=[],X=!0;for(B?(W=B._length,Y=B._length):(B=shapePool.newElement(),W=0,Y=0),U.push(B),O=0;O<tt;O+=1){for(Z=K[O].lengths,B.c=et[O].c,j=et[O].c?Z.length:Z.length+1,G=1;G<j;G+=1)if(J+(q=Z[G-1]).addedLength<F.s)J+=q.addedLength,B.c=!1;else{if(J>F.e){B.c=!1;break}F.s<=J&&F.e>=J+q.addedLength?(this.addSegment(et[O].v[G-1],et[O].o[G-1],et[O].i[G],et[O].v[G],B,W,X),X=!1):(rt=bez.getNewSegment(et[O].v[G-1],et[O].v[G],et[O].o[G-1],et[O].i[G],(F.s-J)/q.addedLength,(F.e-J)/q.addedLength,Z[G-1]),this.addSegmentFromArray(rt,B,W,X),X=!1,B.c=!1),J+=q.addedLength,W+=1}if(et[O].c&&Z.length){if(q=Z[G-1],J<=F.e){var Q=Z[G-1].addedLength;F.s<=J&&F.e>=J+Q?(this.addSegment(et[O].v[G-1],et[O].o[G-1],et[O].i[0],et[O].v[0],B,W,X),X=!1):(rt=bez.getNewSegment(et[O].v[G-1],et[O].v[0],et[O].o[G-1],et[O].i[0],(F.s-J)/Q,(F.e-J)/Q,Z[G-1]),this.addSegmentFromArray(rt,B,W,X),X=!1,B.c=!1)}else B.c=!1;J+=q.addedLength,W+=1}if(B._length&&(B.setXYAt(B.v[Y][0],B.v[Y][1],"i",Y),B.setXYAt(B.v[B._length-1][0],B.v[B._length-1][1],"o",B._length-1)),J>F.e)break;O<tt-1&&(B=shapePool.newElement(),X=!0,U.push(B),W=0)}return U},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(D,F){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(D,F.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(D,F){var B=F/100,O=[0,0],G=D._length,j=0;for(j=0;j<G;j+=1)O[0]+=D.v[j][0],O[1]+=D.v[j][1];O[0]/=G,O[1]/=G;var et=shapePool.newElement();for(et.c=D.c,j=0;j<G;j+=1)et.setTripleAt(D.v[j][0]+(O[0]-D.v[j][0])*B,D.v[j][1]+(O[1]-D.v[j][1])*B,D.o[j][0]+(O[0]-D.o[j][0])*-B,D.o[j][1]+(O[1]-D.o[j][1])*-B,D.i[j][0]+(O[0]-D.i[j][0])*-B,D.i[j][1]+(O[1]-D.i[j][1])*-B,j);return et},PuckerAndBloatModifier.prototype.processShapes=function(D){var F,B,O,G,j,q,W=this.shapes.length,Z=this.amount.v;if(0!==Z)for(B=0;B<W;B+=1){if(q=(j=this.shapes[B]).localShapeCollection,j.shape._mdf||this._mdf||D)for(q.releaseShapes(),j.shape._mdf=!0,F=j.shape.paths.shapes,G=j.shape.paths._length,O=0;O<G;O+=1)q.addShape(this.processPath(F[O],Z));j.shape.paths=j.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var D=[0,0];function F(B,O,G){if(this.elem=B,this.frameId=-1,this.propType="transform",this.data=O,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(G||B),O.p&&O.p.s?(this.px=PropertyFactory.getProp(B,O.p.x,0,0,this),this.py=PropertyFactory.getProp(B,O.p.y,0,0,this),O.p.z&&(this.pz=PropertyFactory.getProp(B,O.p.z,0,0,this))):this.p=PropertyFactory.getProp(B,O.p||{k:[0,0,0]},1,0,this),O.rx){if(this.rx=PropertyFactory.getProp(B,O.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(B,O.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(B,O.rz,0,degToRads,this),O.or.k[0].ti){var j,q=O.or.k.length;for(j=0;j<q;j+=1)O.or.k[j].to=null,O.or.k[j].ti=null}this.or=PropertyFactory.getProp(B,O.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(B,O.r||{k:0},0,degToRads,this);O.sk&&(this.sk=PropertyFactory.getProp(B,O.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(B,O.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(B,O.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(B,O.s||{k:[100,100,100]},1,.01,this),this.o=O.o?PropertyFactory.getProp(B,O.o,0,.01,B):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return F.prototype={applyToMatrix:function(B){var O=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||O,this.a&&B.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&B.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&B.skewFromAxis(-this.sk.v,this.sa.v),this.r?B.rotate(-this.r.v):B.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?B.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):B.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(B){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||B){var O;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var G,j;if(O=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(G=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/O,0),j=this.p.getValueAtTime(this.p.keyframes[0].t/O,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(G=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/O,0),j=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/O,0)):(G=this.p.pv,j=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/O,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){G=[],j=[];var q=this.px,W=this.py;q._caching.lastFrame+q.offsetTime<=q.keyframes[0].t?(G[0]=q.getValueAtTime((q.keyframes[0].t+.01)/O,0),G[1]=W.getValueAtTime((W.keyframes[0].t+.01)/O,0),j[0]=q.getValueAtTime(q.keyframes[0].t/O,0),j[1]=W.getValueAtTime(W.keyframes[0].t/O,0)):q._caching.lastFrame+q.offsetTime>=q.keyframes[q.keyframes.length-1].t?(G[0]=q.getValueAtTime(q.keyframes[q.keyframes.length-1].t/O,0),G[1]=W.getValueAtTime(W.keyframes[W.keyframes.length-1].t/O,0),j[0]=q.getValueAtTime((q.keyframes[q.keyframes.length-1].t-.01)/O,0),j[1]=W.getValueAtTime((W.keyframes[W.keyframes.length-1].t-.01)/O,0)):(G=[q.pv,W.pv],j[0]=q.getValueAtTime((q._caching.lastFrame+q.offsetTime-.01)/O,q.offsetTime),j[1]=W.getValueAtTime((W._caching.lastFrame+W.offsetTime-.01)/O,W.offsetTime))}else G=j=D;this.v.rotate(-Math.atan2(G[1]-j[1],G[0]-j[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],F),F.prototype.addDynamicProperty=function(B){this._addDynamicProperty(B),this.elem.addDynamicProperty(B),this._isDirty=!0},F.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(B,O,G){return new F(B,O,G)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(D,F){return 1e5*Math.abs(D-F)<=Math.min(Math.abs(D),Math.abs(F))}function floatZero(D){return Math.abs(D)<=1e-5}function lerp(D,F,B){return D*(1-B)+F*B}function lerpPoint(D,F,B){return[lerp(D[0],F[0],B),lerp(D[1],F[1],B)]}function quadRoots(D,F,B){if(0===D)return[];var O=F*F-4*D*B;if(O<0)return[];var G=-F/(2*D);if(0===O)return[G];var j=Math.sqrt(O)/(2*D);return[G-j,G+j]}function polynomialCoefficients(D,F,B,O){return[3*F-D-3*B+O,3*D-6*F+3*B,-3*D+3*F,D]}function singlePoint(D){return new PolynomialBezier(D,D,D,D,!1)}function PolynomialBezier(D,F,B,O,G){G&&pointEqual(D,F)&&(F=lerpPoint(D,O,1/3)),G&&pointEqual(B,O)&&(B=lerpPoint(D,O,2/3));var j=polynomialCoefficients(D[0],F[0],B[0],O[0]),q=polynomialCoefficients(D[1],F[1],B[1],O[1]);this.a=[j[0],q[0]],this.b=[j[1],q[1]],this.c=[j[2],q[2]],this.d=[j[3],q[3]],this.points=[D,F,B,O]}function extrema(D,F){var B=D.points[0][F],O=D.points[D.points.length-1][F];if(B>O){var G=O;O=B,B=G}for(var j=quadRoots(3*D.a[F],2*D.b[F],D.c[F]),q=0;q<j.length;q+=1)if(j[q]>0&&j[q]<1){var W=D.point(j[q])[F];W<B?B=W:W>O&&(O=W)}return{min:B,max:O}}function intersectData(D,F,B){var O=D.boundingBox();return{cx:O.cx,cy:O.cy,width:O.width,height:O.height,bez:D,t:(F+B)/2,t1:F,t2:B}}function splitData(D){var F=D.bez.split(.5);return[intersectData(F[0],D.t1,D.t),intersectData(F[1],D.t,D.t2)]}function boxIntersect(D,F){return 2*Math.abs(D.cx-F.cx)<D.width+F.width&&2*Math.abs(D.cy-F.cy)<D.height+F.height}function intersectsImpl(D,F,B,O,G,j){if(boxIntersect(D,F))if(B>=j||D.width<=O&&D.height<=O&&F.width<=O&&F.height<=O)G.push([D.t,F.t]);else{var q=splitData(D),W=splitData(F);intersectsImpl(q[0],W[0],B+1,O,G,j),intersectsImpl(q[0],W[1],B+1,O,G,j),intersectsImpl(q[1],W[0],B+1,O,G,j),intersectsImpl(q[1],W[1],B+1,O,G,j)}}function crossProduct(D,F){return[D[1]*F[2]-D[2]*F[1],D[2]*F[0]-D[0]*F[2],D[0]*F[1]-D[1]*F[0]]}function lineIntersection(D,F,B,O){var q=[B[0],B[1],1],W=[O[0],O[1],1],Z=crossProduct(crossProduct([D[0],D[1],1],[F[0],F[1],1]),crossProduct(q,W));return floatZero(Z[2])?null:[Z[0]/Z[2],Z[1]/Z[2]]}function polarOffset(D,F,B){return[D[0]+Math.cos(F)*B,D[1]-Math.sin(F)*B]}function pointDistance(D,F){return Math.hypot(D[0]-F[0],D[1]-F[1])}function pointEqual(D,F){return floatEqual(D[0],F[0])&&floatEqual(D[1],F[1])}function ZigZagModifier(){}function setPoint(D,F,B,O,G,j,q){var W=B-Math.PI/2,Z=B+Math.PI/2,rt=F[0]+Math.cos(B)*O*G,Y=F[1]-Math.sin(B)*O*G;D.setTripleAt(rt,Y,rt+Math.cos(W)*j,Y-Math.sin(W)*j,rt+Math.cos(Z)*q,Y-Math.sin(Z)*q,D.length())}function getPerpendicularVector(D,F){var B=[F[0]-D[0],F[1]-D[1]],O=.5*-Math.PI;return[Math.cos(O)*B[0]-Math.sin(O)*B[1],Math.sin(O)*B[0]+Math.cos(O)*B[1]]}function getProjectingAngle(D,F){var B=0===F?D.length()-1:F-1,O=(F+1)%D.length(),G=getPerpendicularVector(D.v[B],D.v[O]);return Math.atan2(0,1)-Math.atan2(G[1],G[0])}function zigZagCorner(D,F,B,O,G,j,q){var W=getProjectingAngle(F,B),Z=F.v[B%F._length],rt=F.v[0===B?F._length-1:B-1],Y=F.v[(B+1)%F._length],K=2===j?Math.sqrt(Math.pow(Z[0]-rt[0],2)+Math.pow(Z[1]-rt[1],2)):0,et=2===j?Math.sqrt(Math.pow(Z[0]-Y[0],2)+Math.pow(Z[1]-Y[1],2)):0;setPoint(D,F.v[B%F._length],W,q,O,et/(2*(G+1)),K/(2*(G+1)),j)}function zigZagSegment(D,F,B,O,G,j){for(var q=0;q<O;q+=1){var W=(q+1)/(O+1),Z=2===G?Math.sqrt(Math.pow(F.points[3][0]-F.points[0][0],2)+Math.pow(F.points[3][1]-F.points[0][1],2)):0,rt=F.normalAngle(W);setPoint(D,F.point(W),rt,j,B,Z/(2*(O+1)),Z/(2*(O+1)),G),j=-j}return j}function linearOffset(D,F,B){var O=Math.atan2(F[0]-D[0],F[1]-D[1]);return[polarOffset(D,O,B),polarOffset(F,O,B)]}function offsetSegment(D,F){var B,O,G,j,q,W,Z;B=(Z=linearOffset(D.points[0],D.points[1],F))[0],O=Z[1],G=(Z=linearOffset(D.points[1],D.points[2],F))[0],j=Z[1],q=(Z=linearOffset(D.points[2],D.points[3],F))[0],W=Z[1];var rt=lineIntersection(B,O,G,j);null===rt&&(rt=O);var Y=lineIntersection(q,W,G,j);return null===Y&&(Y=q),new PolynomialBezier(B,rt,Y,W)}function joinLines(D,F,B,O,G){var j=F.points[3],q=B.points[0];if(3===O||pointEqual(j,q))return j;if(2===O){var W=-F.tangentAngle(1),Z=-B.tangentAngle(0)+Math.PI,rt=lineIntersection(j,polarOffset(j,W+Math.PI/2,100),q,polarOffset(q,W+Math.PI/2,100)),Y=rt?pointDistance(rt,j):pointDistance(j,q)/2,K=polarOffset(j,W,2*Y*roundCorner);return D.setXYAt(K[0],K[1],"o",D.length()-1),K=polarOffset(q,Z,2*Y*roundCorner),D.setTripleAt(q[0],q[1],q[0],q[1],K[0],K[1],D.length()),q}var et=lineIntersection(pointEqual(j,F.points[2])?F.points[0]:F.points[2],j,q,pointEqual(q,B.points[1])?B.points[3]:B.points[1]);return et&&pointDistance(et,j)<G?(D.setTripleAt(et[0],et[1],et[0],et[1],et[0],et[1],D.length()),et):j}function getIntersection(D,F){var B=D.intersections(F);return B.length&&floatEqual(B[0][0],1)&&B.shift(),B.length?B[0]:null}function pruneSegmentIntersection(D,F){var B=D.slice(),O=F.slice(),G=getIntersection(D[D.length-1],F[0]);return G&&(B[D.length-1]=D[D.length-1].split(G[0])[0],O[0]=F[0].split(G[1])[1]),D.length>1&&F.length>1&&(G=getIntersection(D[0],F[F.length-1]))?[[D[0].split(G[0])[0]],[F[F.length-1].split(G[1])[1]]]:[B,O]}function pruneIntersections(D){for(var F,B=1;B<D.length;B+=1)F=pruneSegmentIntersection(D[B-1],D[B]),D[B-1]=F[0],D[B]=F[1];return D.length>1&&(F=pruneSegmentIntersection(D[D.length-1],D[0]),D[D.length-1]=F[0],D[0]=F[1]),D}function offsetSegmentSplit(D,F){var B,O,G,j,q=D.inflectionPoints();return 0===q.length?[offsetSegment(D,F)]:1===q.length||floatEqual(q[1],1)?(B=(G=D.split(q[0]))[0],O=G[1],[offsetSegment(B,F),offsetSegment(O,F)]):(B=(G=D.split(q[0]))[0],j=(G=G[1].split((q[1]-q[0])/(1-q[0])))[0],O=G[1],[offsetSegment(B,F),offsetSegment(j,F),offsetSegment(O,F)])}function OffsetPathModifier(){}function getFontProperties(D){for(var F=D.fStyle?D.fStyle.split(" "):[],B="normal",O="normal",G=F.length,j=0;j<G;j+=1)switch(F[j].toLowerCase()){case"italic":O="italic";break;case"bold":B="700";break;case"black":B="900";break;case"medium":B="500";break;case"regular":case"normal":B="400";break;case"light":case"thin":B="200"}return{style:O,weight:D.fWeight||B}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(D,F){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(D,F.c,0,null,this),this.o=PropertyFactory.getProp(D,F.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(D,F.tr,this),this.so=PropertyFactory.getProp(D,F.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(D,F.tr.eo,0,.01,this),this.data=F,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(D,F,B,O,G,j){var q=j?-1:1,W=O.s.v[0]+(1-O.s.v[0])*(1-G),Z=O.s.v[1]+(1-O.s.v[1])*(1-G);D.translate(O.p.v[0]*q*G,O.p.v[1]*q*G,O.p.v[2]),F.translate(-O.a.v[0],-O.a.v[1],O.a.v[2]),F.rotate(-O.r.v*q*G),F.translate(O.a.v[0],O.a.v[1],O.a.v[2]),B.translate(-O.a.v[0],-O.a.v[1],O.a.v[2]),B.scale(j?1/W:W,j?1/Z:Z),B.translate(O.a.v[0],O.a.v[1],O.a.v[2])},RepeaterModifier.prototype.init=function(D,F,B,O){for(this.elem=D,this.arr=F,this.pos=B,this.elemsData=O,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(D),this.initModifierProperties(D,F[B]);B>0;)this._elements.unshift(F[B-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(D){var F,B=D.length;for(F=0;F<B;F+=1)D[F]._processed=!1,"gr"===D[F].ty&&this.resetElements(D[F].it)},RepeaterModifier.prototype.cloneElements=function(D){var F=JSON.parse(JSON.stringify(D));return this.resetElements(F),F},RepeaterModifier.prototype.changeGroupRender=function(D,F){var B,O=D.length;for(B=0;B<O;B+=1)D[B]._render=F,"gr"===D[B].ty&&this.changeGroupRender(D[B].it,F)},RepeaterModifier.prototype.processShapes=function(D){var F,B,O,G,j,q=!1;if(this._mdf||D){var W,Z=Math.ceil(this.c.v);if(this._groups.length<Z){for(;this._groups.length<Z;){var rt={it:this.cloneElements(this._elements),ty:"gr"};rt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,rt),this._groups.splice(0,0,rt),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}for(j=0,O=0;O<=this._groups.length-1;O+=1){if(this._groups[O]._render=W=j<Z,this.changeGroupRender(this._groups[O].it,W),!W){var Y=this.elemsData[O].it,K=Y[Y.length-1];0!==K.transform.op.v?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}j+=1}this._currentCopies=Z;var et=this.o.v,tt=et%1,J=et>0?Math.floor(et):Math.ceil(et),U=this.pMatrix.props,X=this.rMatrix.props,Q=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var it,at,st=0;if(et>0){for(;st<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),st+=1;tt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,tt,!1),st+=tt)}else if(et<0){for(;st>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),st-=1;tt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-tt,!0),st-=tt)}for(O=1===this.data.m?0:this._currentCopies-1,G=1===this.data.m?1:-1,j=this._currentCopies;j;){if(at=(B=(F=this.elemsData[O].it)[F.length-1].transform.mProps.v.props).length,F[F.length-1].transform.mProps._mdf=!0,F[F.length-1].transform.op._mdf=!0,F[F.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+O/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==st){for((0!==O&&1===G||O!==this._currentCopies-1&&-1===G)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(X[0],X[1],X[2],X[3],X[4],X[5],X[6],X[7],X[8],X[9],X[10],X[11],X[12],X[13],X[14],X[15]),this.matrix.transform(Q[0],Q[1],Q[2],Q[3],Q[4],Q[5],Q[6],Q[7],Q[8],Q[9],Q[10],Q[11],Q[12],Q[13],Q[14],Q[15]),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),it=0;it<at;it+=1)B[it]=this.matrix.props[it];this.matrix.reset()}else for(this.matrix.reset(),it=0;it<at;it+=1)B[it]=this.matrix.props[it];st+=1,j-=1,O+=G}}else for(j=this._currentCopies,O=0,G=1;j;)B=(F=this.elemsData[O].it)[F.length-1].transform.mProps.v.props,F[F.length-1].transform.mProps._mdf=!1,F[F.length-1].transform.op._mdf=!1,j-=1,O+=G;return q},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(D,F){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(D,F.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(D,F){var B,O=shapePool.newElement();O.c=D.c;var G,j,q,W,Z,rt,Y,K,et,tt,J,U,X=D._length,Q=0;for(B=0;B<X;B+=1)j=D.i[B],(G=D.v[B])[0]===(q=D.o[B])[0]&&G[1]===q[1]&&G[0]===j[0]&&G[1]===j[1]?0!==B&&B!==X-1||D.c?(W=0===B?D.v[X-1]:D.v[B-1],rt=(Z=Math.sqrt(Math.pow(G[0]-W[0],2)+Math.pow(G[1]-W[1],2)))?Math.min(Z/2,F)/Z:0,Y=J=G[0]+(W[0]-G[0])*rt,K=U=G[1]-(G[1]-W[1])*rt,O.setTripleAt(Y,K,Y-(Y-G[0])*roundCorner,K-(K-G[1])*roundCorner,J,U,Q),Q+=1,W=B===X-1?D.v[0]:D.v[B+1],rt=(Z=Math.sqrt(Math.pow(G[0]-W[0],2)+Math.pow(G[1]-W[1],2)))?Math.min(Z/2,F)/Z:0,Y=et=G[0]+(W[0]-G[0])*rt,K=tt=G[1]+(W[1]-G[1])*rt,O.setTripleAt(Y,K,et,tt,J=Y-(Y-G[0])*roundCorner,U=K-(K-G[1])*roundCorner,Q),Q+=1):(O.setTripleAt(G[0],G[1],q[0],q[1],j[0],j[1],Q),Q+=1):(O.setTripleAt(D.v[B][0],D.v[B][1],D.o[B][0],D.o[B][1],D.i[B][0],D.i[B][1],Q),Q+=1);return O},RoundCornersModifier.prototype.processShapes=function(D){var F,B,O,G,j,q,W=this.shapes.length,Z=this.rd.v;if(0!==Z)for(B=0;B<W;B+=1){if(q=(j=this.shapes[B]).localShapeCollection,j.shape._mdf||this._mdf||D)for(q.releaseShapes(),j.shape._mdf=!0,F=j.shape.paths.shapes,G=j.shape.paths._length,O=0;O<G;O+=1)q.addShape(this.processPath(F[O],Z));j.shape.paths=j.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(D){return[((this.a[0]*D+this.b[0])*D+this.c[0])*D+this.d[0],((this.a[1]*D+this.b[1])*D+this.c[1])*D+this.d[1]]},PolynomialBezier.prototype.derivative=function(D){return[(3*D*this.a[0]+2*this.b[0])*D+this.c[0],(3*D*this.a[1]+2*this.b[1])*D+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(D){var F=this.derivative(D);return Math.atan2(F[1],F[0])},PolynomialBezier.prototype.normalAngle=function(D){var F=this.derivative(D);return Math.atan2(F[0],F[1])},PolynomialBezier.prototype.inflectionPoints=function(){var D=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(D))return[];var F=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/D,B=F*F-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/D;if(B<0)return[];var O=Math.sqrt(B);return floatZero(O)?O>0&&O<1?[F]:[]:[F-O,F+O].filter(function(G){return G>0&&G<1})},PolynomialBezier.prototype.split=function(D){if(D<=0)return[singlePoint(this.points[0]),this];if(D>=1)return[this,singlePoint(this.points[this.points.length-1])];var F=lerpPoint(this.points[0],this.points[1],D),B=lerpPoint(this.points[1],this.points[2],D),O=lerpPoint(this.points[2],this.points[3],D),G=lerpPoint(F,B,D),j=lerpPoint(B,O,D),q=lerpPoint(G,j,D);return[new PolynomialBezier(this.points[0],F,G,q,!0),new PolynomialBezier(q,j,O,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var D=this.bounds();return{left:D.x.min,right:D.x.max,top:D.y.min,bottom:D.y.max,width:D.x.max-D.x.min,height:D.y.max-D.y.min,cx:(D.x.max+D.x.min)/2,cy:(D.y.max+D.y.min)/2}},PolynomialBezier.prototype.intersections=function(D,F,B){void 0===F&&(F=2),void 0===B&&(B=7);var O=[];return intersectsImpl(intersectData(this,0,1),intersectData(D,0,1),0,F,O,B),O},PolynomialBezier.shapeSegment=function(D,F){var B=(F+1)%D.length();return new PolynomialBezier(D.v[F],D.o[F],D.i[B],D.v[B],!0)},PolynomialBezier.shapeSegmentInverted=function(D,F){var B=(F+1)%D.length();return new PolynomialBezier(D.v[B],D.i[B],D.o[F],D.v[F],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(D,F){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(D,F.s,0,null,this),this.frequency=PropertyFactory.getProp(D,F.r,0,null,this),this.pointsType=PropertyFactory.getProp(D,F.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(D,F,B,O){var G=D._length,j=shapePool.newElement();if(j.c=D.c,D.c||(G-=1),0===G)return j;var q=-1,W=PolynomialBezier.shapeSegment(D,0);zigZagCorner(j,D,0,F,B,O,q);for(var Z=0;Z<G;Z+=1)q=zigZagSegment(j,W,F,B,O,-q),W=Z!==G-1||D.c?PolynomialBezier.shapeSegment(D,(Z+1)%G):null,zigZagCorner(j,D,Z+1,F,B,O,q);return j},ZigZagModifier.prototype.processShapes=function(D){var F,B,O,G,j,q,W=this.shapes.length,Z=this.amplitude.v,rt=Math.max(0,Math.round(this.frequency.v)),Y=this.pointsType.v;if(0!==Z)for(B=0;B<W;B+=1){if(q=(j=this.shapes[B]).localShapeCollection,j.shape._mdf||this._mdf||D)for(q.releaseShapes(),j.shape._mdf=!0,F=j.shape.paths.shapes,G=j.shape.paths._length,O=0;O<G;O+=1)q.addShape(this.processPath(F[O],Z,rt,Y));j.shape.paths=j.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(D,F){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(D,F.a,0,null,this),this.miterLimit=PropertyFactory.getProp(D,F.ml,0,null,this),this.lineJoin=F.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(D,F,B,O){var G=shapePool.newElement();G.c=D.c;var j,q,W,Z=D.length();D.c||(Z-=1);var rt=[];for(j=0;j<Z;j+=1)W=PolynomialBezier.shapeSegment(D,j),rt.push(offsetSegmentSplit(W,F));if(!D.c)for(j=Z-1;j>=0;j-=1)W=PolynomialBezier.shapeSegmentInverted(D,j),rt.push(offsetSegmentSplit(W,F));rt=pruneIntersections(rt);var Y=null,K=null;for(j=0;j<rt.length;j+=1){var et=rt[j];for(K&&(Y=joinLines(G,K,et[0],B,O)),K=et[et.length-1],q=0;q<et.length;q+=1)W=et[q],Y&&pointEqual(W.points[0],Y)?G.setXYAt(W.points[1][0],W.points[1][1],"o",G.length()-1):G.setTripleAt(W.points[0][0],W.points[0][1],W.points[1][0],W.points[1][1],W.points[0][0],W.points[0][1],G.length()),G.setTripleAt(W.points[3][0],W.points[3][1],W.points[3][0],W.points[3][1],W.points[2][0],W.points[2][1],G.length()),Y=W.points[3]}return rt.length&&joinLines(G,K,rt[0][0],B,O),G},OffsetPathModifier.prototype.processShapes=function(D){var F,B,O,G,j,q,W=this.shapes.length,Z=this.amount.v,rt=this.miterLimit.v,Y=this.lineJoin;if(0!==Z)for(B=0;B<W;B+=1){if(q=(j=this.shapes[B]).localShapeCollection,j.shape._mdf||this._mdf||D)for(q.releaseShapes(),j.shape._mdf=!0,F=j.shape.paths.shapes,G=j.shape.paths._length,O=0;O<G;O+=1)q.addShape(this.processPath(F[O],Z,Y,rt));j.shape.paths=j.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var D={w:0,size:0,shapes:[],data:{shapes:[]}},F=[];F=F.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],O=[65039,8205];function G(Z,rt){var Y=createTag("span");Y.setAttribute("aria-hidden",!0),Y.style.fontFamily=rt;var K=createTag("span");K.innerText="giItT1WQy@!-/#",Y.style.position="absolute",Y.style.left="-10000px",Y.style.top="-10000px",Y.style.fontSize="300px",Y.style.fontVariant="normal",Y.style.fontStyle="normal",Y.style.fontWeight="normal",Y.style.letterSpacing="0",Y.appendChild(K),document.body.appendChild(Y);var et=K.offsetWidth;return K.style.fontFamily=function(tt){var J,U=tt.split(","),X=U.length,Q=[];for(J=0;J<X;J+=1)"sans-serif"!==U[J]&&"monospace"!==U[J]&&Q.push(U[J]);return Q.join(",")}(Z)+", "+rt,{node:K,w:et,parent:Y}}function j(Z,rt){var Y,K=document.body&&rt?"svg":"canvas",et=getFontProperties(Z);if("svg"===K){var tt=createNS("text");tt.style.fontSize="100px",tt.setAttribute("font-family",Z.fFamily),tt.setAttribute("font-style",et.style),tt.setAttribute("font-weight",et.weight),tt.textContent="1",Z.fClass?(tt.style.fontFamily="inherit",tt.setAttribute("class",Z.fClass)):tt.style.fontFamily=Z.fFamily,rt.appendChild(tt),Y=tt}else{var J=new OffscreenCanvas(500,500).getContext("2d");J.font=et.style+" "+et.weight+" 100px "+Z.fFamily,Y=J}return{measureText:function(U){return"svg"===K?(Y.textContent=U,Y.getComputedTextLength()):Y.measureText(U).width}}}var q=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return q.isModifier=function(Z,rt){var Y=Z.toString(16)+rt.toString(16);return-1!==B.indexOf(Y)},q.isZeroWidthJoiner=function(Z,rt){return rt?Z===O[0]&&rt===O[1]:Z===O[1]},q.isCombinedCharacter=function(Z){return-1!==F.indexOf(Z)},q.prototype={addChars:function(Z){if(Z){var rt;this.chars||(this.chars=[]);var Y,K,et=Z.length,tt=this.chars.length;for(rt=0;rt<et;rt+=1){for(Y=0,K=!1;Y<tt;)this.chars[Y].style===Z[rt].style&&this.chars[Y].fFamily===Z[rt].fFamily&&this.chars[Y].ch===Z[rt].ch&&(K=!0),Y+=1;K||(this.chars.push(Z[rt]),tt+=1)}}},addFonts:function(Z,rt){if(Z){if(this.chars)return this.isLoaded=!0,void(this.fonts=Z.list);if(!document.body)return this.isLoaded=!0,Z.list.forEach(function(st){st.helper=j(st),st.cache={}}),void(this.fonts=Z.list);var Y,K=Z.list,et=K.length,tt=et;for(Y=0;Y<et;Y+=1){var J,U,X=!0;if(K[Y].loaded=!1,K[Y].monoCase=G(K[Y].fFamily,"monospace"),K[Y].sansCase=G(K[Y].fFamily,"sans-serif"),K[Y].fPath){if("p"===K[Y].fOrigin||3===K[Y].origin){if((J=document.querySelectorAll('style[f-forigin="p"][f-family="'+K[Y].fFamily+'"], style[f-origin="3"][f-family="'+K[Y].fFamily+'"]')).length>0&&(X=!1),X){var Q=createTag("style");Q.setAttribute("f-forigin",K[Y].fOrigin),Q.setAttribute("f-origin",K[Y].origin),Q.setAttribute("f-family",K[Y].fFamily),Q.type="text/css",Q.innerText="@font-face {font-family: "+K[Y].fFamily+"; font-style: normal; src: url('"+K[Y].fPath+"');}",rt.appendChild(Q)}}else if("g"===K[Y].fOrigin||1===K[Y].origin){for(J=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),U=0;U<J.length;U+=1)-1!==J[U].href.indexOf(K[Y].fPath)&&(X=!1);if(X){var it=createTag("link");it.setAttribute("f-forigin",K[Y].fOrigin),it.setAttribute("f-origin",K[Y].origin),it.type="text/css",it.rel="stylesheet",it.href=K[Y].fPath,document.body.appendChild(it)}}else if("t"===K[Y].fOrigin||2===K[Y].origin){for(J=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),U=0;U<J.length;U+=1)K[Y].fPath===J[U].src&&(X=!1);if(X){var at=createTag("link");at.setAttribute("f-forigin",K[Y].fOrigin),at.setAttribute("f-origin",K[Y].origin),at.setAttribute("rel","stylesheet"),at.setAttribute("href",K[Y].fPath),rt.appendChild(at)}}}else K[Y].loaded=!0,tt-=1;K[Y].helper=j(K[Y],rt),K[Y].cache={},this.fonts.push(K[Y])}0===tt?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(Z,rt,Y){for(var K=0,et=this.chars.length;K<et;){if(this.chars[K].ch===Z&&this.chars[K].style===rt&&this.chars[K].fFamily===Y)return this.chars[K];K+=1}return("string"==typeof Z&&13!==Z.charCodeAt(0)||!Z)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Z,rt,Y)),D},getFontByName:function(Z){for(var rt=0,Y=this.fonts.length;rt<Y;){if(this.fonts[rt].fName===Z)return this.fonts[rt];rt+=1}return this.fonts[0]},measureText:function(Z,rt,Y){var K=this.getFontByName(rt),et=Z.charCodeAt(0);if(!K.cache[et+1]){var tt=K.helper;if(" "===Z){var J=tt.measureText("|"+Z+"|"),U=tt.measureText("||");K.cache[et+1]=(J-U)/100}else K.cache[et+1]=tt.measureText(Z)/100}return K.cache[et+1]*Y},checkLoadedFonts:function(){var Z,K=this.fonts.length,et=K;for(Z=0;Z<K;Z+=1)this.fonts[Z].loaded?et-=1:"n"===this.fonts[Z].fOrigin||0===this.fonts[Z].origin?this.fonts[Z].loaded=!0:((this.fonts[Z].monoCase.node.offsetWidth!==this.fonts[Z].monoCase.w||this.fonts[Z].sansCase.node.offsetWidth!==this.fonts[Z].sansCase.w)&&(et-=1,this.fonts[Z].loaded=!0),this.fonts[Z].loaded&&(this.fonts[Z].sansCase.parent.parentNode.removeChild(this.fonts[Z].sansCase.parent),this.fonts[Z].monoCase.parent.parentNode.removeChild(this.fonts[Z].monoCase.parent)));0!==et&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},q}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(D){-1===this.renderableComponents.indexOf(D)&&this.renderableComponents.push(D)},removeRenderableComponent:function(D){-1!==this.renderableComponents.indexOf(D)&&this.renderableComponents.splice(this.renderableComponents.indexOf(D),1)},prepareRenderableFrame:function(D){this.checkLayerLimits(D)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(D){this.data.ip-this.data.st<=D&&this.data.op-this.data.st>D?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var D,F=this.renderableComponents.length;for(D=0;D<F;D+=1)this.renderableComponents[D].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(D){return blendModeEnums[D]||""}),blendModeEnums;function SliderEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,0,0,B)}function AngleEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,0,0,B)}function ColorEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,1,0,B)}function PointEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,1,0,B)}function LayerIndexEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,0,0,B)}function MaskIndexEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,0,0,B)}function CheckboxEffect(D,F,B){this.p=PropertyFactory.getProp(F,D.v,0,0,B)}function NoValueEffect(){this.p={}}function EffectsManager(D,F){var B,O=D.ef||[];this.effectElements=[];var G,j=O.length;for(B=0;B<j;B+=1)G=new GroupEffect(O[B],F),this.effectElements.push(G)}function GroupEffect(D,F){this.init(D,F)}function BaseElement(){}function FrameElement(){}function FootageElement(D,F,B){this.initFrame(),this.initRenderable(),this.assetData=F.getAssetData(D.refId),this.footageData=F.imageLoader.getAsset(this.assetData),this.initBaseData(D,F,B)}function AudioElement(D,F,B){this.initFrame(),this.initRenderable(),this.assetData=F.getAssetData(D.refId),this.initBaseData(D,F,B),this._isPlaying=!1,this._canPlay=!1;var O=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(O),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=D.tm?PropertyFactory.getProp(this,D.tm,0,F.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,D.au&&D.au.lv?D.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(D,F,B){this.data=D,this.element=F,this.globalData=B,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var O,G,j=this.globalData.defs,q=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(q),this.solidPath="";var W,Z,rt,Y,K,et,tt=this.masksProperties,J=0,U=[],X=createElementID(),Q="clipPath",it="clip-path";for(O=0;O<q;O+=1)if(("a"!==tt[O].mode&&"n"!==tt[O].mode||tt[O].inv||100!==tt[O].o.k||tt[O].o.x)&&(Q="mask",it="mask"),"s"!==tt[O].mode&&"i"!==tt[O].mode||0!==J?rt=null:((rt=createNS("rect")).setAttribute("fill","#ffffff"),rt.setAttribute("width",this.element.comp.data.w||0),rt.setAttribute("height",this.element.comp.data.h||0),U.push(rt)),G=createNS("path"),"n"===tt[O].mode)this.viewData[O]={op:PropertyFactory.getProp(this.element,tt[O].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[O],3),elem:G,lastPath:""},j.appendChild(G);else{var at;if(J+=1,G.setAttribute("fill","s"===tt[O].mode?"#000000":"#ffffff"),G.setAttribute("clip-rule","nonzero"),0!==tt[O].x.k?(Q="mask",it="mask",et=PropertyFactory.getProp(this.element,tt[O].x,0,null,this.element),at=createElementID(),(Y=createNS("filter")).setAttribute("id",at),(K=createNS("feMorphology")).setAttribute("operator","erode"),K.setAttribute("in","SourceGraphic"),K.setAttribute("radius","0"),Y.appendChild(K),j.appendChild(Y),G.setAttribute("stroke","s"===tt[O].mode?"#000000":"#ffffff")):(K=null,et=null),this.storedData[O]={elem:G,x:et,expan:K,lastPath:"",lastOperator:"",filterId:at,lastRadius:0},"i"===tt[O].mode){Z=U.length;var st=createNS("g");for(W=0;W<Z;W+=1)st.appendChild(U[W]);var ot=createNS("mask");ot.setAttribute("mask-type","alpha"),ot.setAttribute("id",X+"_"+J),ot.appendChild(G),j.appendChild(ot),st.setAttribute("mask","url("+getLocationHref()+"#"+X+"_"+J+")"),U.length=0,U.push(st)}else U.push(G);tt[O].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[O]={elem:G,lastPath:"",op:PropertyFactory.getProp(this.element,tt[O].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[O],3),invRect:rt},this.viewData[O].prop.k||this.drawPath(tt[O],this.viewData[O].prop.v,this.viewData[O])}for(this.maskElement=createNS(Q),q=U.length,O=0;O<q;O+=1)this.maskElement.appendChild(U[O]);J>0&&(this.maskElement.setAttribute("id",X),this.element.maskedElement.setAttribute(it,"url("+getLocationHref()+"#"+X+")"),j.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(D,F){var B;this.data=D,this.effectElements=[],this.initDynamicPropertyContainer(F);var O,G=this.data.ef.length,j=this.data.ef;for(B=0;B<G;B+=1){switch(O=null,j[B].ty){case 0:O=new SliderEffect(j[B],F,this);break;case 1:O=new AngleEffect(j[B],F,this);break;case 2:O=new ColorEffect(j[B],F,this);break;case 3:O=new PointEffect(j[B],F,this);break;case 4:case 7:O=new CheckboxEffect(j[B],F,this);break;case 10:O=new LayerIndexEffect(j[B],F,this);break;case 11:O=new MaskIndexEffect(j[B],F,this);break;case 5:O=new EffectsManager(j[B],F,this);break;default:O=new NoValueEffect(j[B],F,this)}O&&this.effectElements.push(O)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var D=0,F=this.data.masksProperties.length;D<F;){if("n"!==this.data.masksProperties[D].mode&&!1!==this.data.masksProperties[D].cl)return!0;D+=1}return!1},initExpressions:function(){var D=getExpressionInterfaces();if(D){var F=D("layer"),B=D("effects"),O=D("shape"),G=D("text"),j=D("comp");this.layerInterface=F(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var q=B.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(q),0===this.data.ty||this.data.xt?this.compInterface=j(this):4===this.data.ty?(this.layerInterface.shapeInterface=O(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=G(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var D=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=D},initBaseData:function(D,F,B){this.globalData=F,this.comp=B,this.data=D,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(D,F){var B,O=this.dynamicProperties.length;for(B=0;B<O;B+=1)(F||this._isParent&&"transform"===this.dynamicProperties[B].propType)&&(this.dynamicProperties[B].getValue(),this.dynamicProperties[B]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(D){-1===this.dynamicProperties.indexOf(D)&&this.dynamicProperties.push(D)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var D=getExpressionInterfaces();if(D){var F=D("footage");this.layerInterface=F(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(D){this.prepareRenderableFrame(D,!0),this.prepareProperties(D,!0),this._currentTime=this.tm._placeholder?D/this.data.sr:this.tm.v,this._volume=this.lv.v[0];var B=this._volume*this._volumeMultiplier;this._previousVolume!==B&&(this._previousVolume=B,this.audio.volume(B))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(D){this.audio.rate(D)},AudioElement.prototype.volume=function(D){this._volumeMultiplier=D,this._previousVolume=D*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(D){var F,B,O=this.layers.length;for(this.completeLayers=!0,F=O-1;F>=0;F-=1)this.elements[F]||(B=this.layers[F]).ip-B.st<=D-this.layers[F].st&&B.op-B.st>D-this.layers[F].st&&this.buildItem(F),this.completeLayers=!!this.elements[F]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(D){switch(D.ty){case 2:return this.createImage(D);case 0:return this.createComp(D);case 1:return this.createSolid(D);case 3:default:return this.createNull(D);case 4:return this.createShape(D);case 5:return this.createText(D);case 6:return this.createAudio(D);case 13:return this.createCamera(D);case 15:return this.createFootage(D)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(D){return new AudioElement(D,this.globalData,this)},BaseRenderer.prototype.createFootage=function(D){return new FootageElement(D,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var D,F=this.layers.length;for(D=0;D<F;D+=1)this.buildItem(D);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(D){var F;this.completeLayers=!1;var B,O=D.length,G=this.layers.length;for(F=0;F<O;F+=1)for(B=0;B<G;){if(this.layers[B].id===D[F].id){this.layers[B]=D[F];break}B+=1}},BaseRenderer.prototype.setProjectInterface=function(D){this.globalData.projectInterface=D},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(D,F,B){for(var O=this.elements,G=this.layers,j=0,q=G.length;j<q;)G[j].ind==F&&(O[j]&&!0!==O[j]?(B.push(O[j]),O[j].setAsParent(),void 0!==G[j].parent?this.buildElementParenting(D,G[j].parent,B):D.setHierarchy(B)):(this.buildItem(j),this.addPendingElement(D))),j+=1},BaseRenderer.prototype.addPendingElement=function(D){this.pendingElements.push(D)},BaseRenderer.prototype.searchExtraCompositions=function(D){var F,B=D.length;for(F=0;F<B;F+=1)if(D[F].xt){var O=this.createComp(D[F]);O.initExpressions(),this.globalData.projectInterface.registerComposition(O)}},BaseRenderer.prototype.getElementByPath=function(D){var F,B=D.shift();if("number"==typeof B)F=this.elements[B];else{var O,G=this.elements.length;for(O=0;O<G;O+=1)if(this.elements[O].data.nm===B){F=this.elements[O];break}}return 0===D.length?F:F.getElementByPath(D)},BaseRenderer.prototype.setupGlobalData=function(D,F){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(D.chars),this.globalData.fontManager.addFonts(D.fonts,F),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=D.fr,this.globalData.nm=D.nm,this.globalData.compSize={w:D.w,h:D.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var D,F=this.finalTransform.mat,B=0,O=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;B<O;){if(this.hierarchy[B].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}B+=1}if(this.finalTransform._matMdf)for(F.cloneFromProps(D=this.finalTransform.mProp.v.props),B=0;B<O;B+=1)F.transform((D=this.hierarchy[B].finalTransform.mProp.v.props)[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15])}},globalToLocal:function(D){var F=[];F.push(this.finalTransform);for(var B,O=!0,G=this.comp;O;)G.finalTransform?(G.data.hasMask&&F.splice(0,0,G.finalTransform),G=G.comp):O=!1;var j,q=F.length;for(B=0;B<q;B+=1)j=F[B].mat.applyToPointArray(0,0,0),D=[D[0]-j[0],D[1]-j[1],0];return D},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(D){return this.viewData[D].prop},MaskElement.prototype.renderFrame=function(D){var F,B=this.element.finalTransform.mat,O=this.masksProperties.length;for(F=0;F<O;F+=1)if((this.viewData[F].prop._mdf||D)&&this.drawPath(this.masksProperties[F],this.viewData[F].prop.v,this.viewData[F]),(this.viewData[F].op._mdf||D)&&this.viewData[F].elem.setAttribute("fill-opacity",this.viewData[F].op.v),"n"!==this.masksProperties[F].mode&&(this.viewData[F].invRect&&(this.element.finalTransform.mProp._mdf||D)&&this.viewData[F].invRect.setAttribute("transform",B.getInverseMatrix().to2dCSS()),this.storedData[F].x&&(this.storedData[F].x._mdf||D))){var G=this.storedData[F].expan;this.storedData[F].x.v<0?("erode"!==this.storedData[F].lastOperator&&(this.storedData[F].lastOperator="erode",this.storedData[F].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[F].filterId+")")),G.setAttribute("radius",-this.storedData[F].x.v)):("dilate"!==this.storedData[F].lastOperator&&(this.storedData[F].lastOperator="dilate",this.storedData[F].elem.setAttribute("filter",null)),this.storedData[F].elem.setAttribute("stroke-width",2*this.storedData[F].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var D="M0,0 ";return D+=" h"+this.globalData.compSize.w,D+=" v"+this.globalData.compSize.h,(D+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(D,F,B){var O,G,j=" M"+F.v[0][0]+","+F.v[0][1];for(G=F._length,O=1;O<G;O+=1)j+=" C"+F.o[O-1][0]+","+F.o[O-1][1]+" "+F.i[O][0]+","+F.i[O][1]+" "+F.v[O][0]+","+F.v[O][1];if(F.c&&G>1&&(j+=" C"+F.o[O-1][0]+","+F.o[O-1][1]+" "+F.i[0][0]+","+F.i[0][1]+" "+F.v[0][0]+","+F.v[0][1]),B.lastPath!==j){var q="";B.elem&&(F.c&&(q=D.inv?this.solidPath+j:j),B.elem.setAttribute("d",q)),B.lastPath=j}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var D={createFilter:function(F,B){var O=createNS("filter");return O.setAttribute("id",F),!0!==B&&(O.setAttribute("filterUnits","objectBoundingBox"),O.setAttribute("x","0%"),O.setAttribute("y","0%"),O.setAttribute("width","100%"),O.setAttribute("height","100%")),O},createAlphaToLuminanceFilter:function(){var F=createNS("feColorMatrix");return F.setAttribute("type","matrix"),F.setAttribute("color-interpolation-filters","sRGB"),F.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),F}};return D}(),featureSupport=function(){var D={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(D.maskType=!1),D}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(D){var F,B,O="SourceGraphic",G=D.data.ef?D.data.ef.length:0,j=createElementID(),q=filtersFactory.createFilter(j,!0),W=0;for(this.filters=[],F=0;F<G;F+=1){B=null;var Z=D.data.ef[F].ty;registeredEffects[Z]&&(B=new registeredEffects[Z].effect(q,D.effectsManager.effectElements[F],D,idPrefix+W,O),O=idPrefix+W,registeredEffects[Z].countsAsEffect&&(W+=1)),B&&this.filters.push(B)}W&&(D.globalData.defs.appendChild(q),D.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+j+")")),this.filters.length&&D.addRenderableComponent(this)}function registerEffect(D,F,B){registeredEffects[D]={effect:F,countsAsEffect:B}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(D,F,B){this.assetData=F.getAssetData(D.refId),this.initElement(D,F,B),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(D,F){this.elem=D,this.pos=F}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(D){var F,B=this.filters.length;for(F=0;F<B;F+=1)this.filters[F].renderFrame(D)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var D=null;if(this.data.td){this.matteMasks={};var F=createNS("symbol");F.setAttribute("id",this.layerId);var B=createNS("g");B.appendChild(this.layerElement),F.appendChild(B),D=B,this.globalData.defs.appendChild(F)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),D=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var O=createNS("clipPath"),G=createNS("path");G.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var j=createElementID();if(O.setAttribute("id",j),O.appendChild(G),this.globalData.defs.appendChild(O),this.checkMasks()){var q=createNS("g");q.setAttribute("clip-path","url("+getLocationHref()+"#"+j+")"),q.appendChild(this.layerElement),this.transformedElement=q,D?D.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+j+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(D){if(!this.matteMasks[D]){var F,B,O,G,j=this.layerId+"_"+D;if(1===D||3===D){var q=createNS("mask");q.setAttribute("id",j),q.setAttribute("mask-type",3===D?"luminance":"alpha"),(O=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),q.appendChild(O),this.globalData.defs.appendChild(q),featureSupport.maskType||1!==D||(q.setAttribute("mask-type","luminance"),F=createElementID(),B=filtersFactory.createFilter(F),this.globalData.defs.appendChild(B),B.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(G=createNS("g")).appendChild(O),q.appendChild(G),G.setAttribute("filter","url("+getLocationHref()+"#"+F+")"))}else if(2===D){var W=createNS("mask");W.setAttribute("id",j),W.setAttribute("mask-type","alpha");var Z=createNS("g");W.appendChild(Z),F=createElementID(),B=filtersFactory.createFilter(F);var rt=createNS("feComponentTransfer");rt.setAttribute("in","SourceGraphic"),B.appendChild(rt);var Y=createNS("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),rt.appendChild(Y),this.globalData.defs.appendChild(B);var K=createNS("rect");K.setAttribute("width",this.comp.data.w),K.setAttribute("height",this.comp.data.h),K.setAttribute("x","0"),K.setAttribute("y","0"),K.setAttribute("fill","#ffffff"),K.setAttribute("opacity","0"),Z.setAttribute("filter","url("+getLocationHref()+"#"+F+")"),Z.appendChild(K),(O=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Z.appendChild(O),featureSupport.maskType||(W.setAttribute("mask-type","luminance"),B.appendChild(filtersFactory.createAlphaToLuminanceFilter()),G=createNS("g"),Z.appendChild(K),G.appendChild(this.layerElement),Z.appendChild(G)),this.globalData.defs.appendChild(W)}this.matteMasks[D]=j}return this.matteMasks[D]},setMatte:function(D){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+D+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(D){this.hierarchy=D},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(D,F,B){this.initFrame(),this.initBaseData(D,F,B),this.initTransform(D,F,B),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(D){this._mdf=!1,this.prepareRenderableFrame(D),this.prepareProperties(D,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var D=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",D),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(D){var F,B=this.shapeModifiers.length;for(F=0;F<B;F+=1)this.shapeModifiers[F].addShape(D)},isShapeInAnimatedModifiers:function(D){for(var F=this.shapeModifiers.length;0<F;)if(this.shapeModifiers[0].isAnimatedWithShape(D))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var D,F=this.shapes.length;for(D=0;D<F;D+=1)this.shapes[D].sh.reset();for(D=(F=this.shapeModifiers.length)-1;D>=0&&!this.shapeModifiers[D].processShapes(this._isFirstFrame);D-=1);}},searchProcessedElement:function(D){for(var F=this.processedElements,B=0,O=F.length;B<O;){if(F[B].elem===D)return F[B].pos;B+=1}return 0},addProcessedElement:function(D,F){for(var B=this.processedElements,O=B.length;O;)if(B[O-=1].elem===D)return void(B[O].pos=F);B.push(new ProcessedElement(D,F))},prepareFrame:function(D){this.prepareRenderableFrame(D),this.prepareProperties(D,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(D,F,B){this.caches=[],this.styles=[],this.transformers=D,this.lStr="",this.sh=B,this.lvl=F,this._isAnimated=!!B.k;for(var O=0,G=D.length;O<G;){if(D[O].mProps.dynamicProperties.length){this._isAnimated=!0;break}O+=1}}function SVGStyleData(D,F){this.data=D,this.type=D.ty,this.d="",this.lvl=F,this._mdf=!1,this.closed=!0===D.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(D,F,B,O){var G;this.elem=D,this.frameId=-1,this.dataProps=createSizedArray(F.length),this.renderer=B,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",F.length?F.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(O);var j,q=F.length||0;for(G=0;G<q;G+=1)j=PropertyFactory.getProp(D,F[G].v,0,0,this),this.k=j.k||this.k,this.dataProps[G]={n:F[G].n,p:j};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(D,F,B){this.initDynamicPropertyContainer(D),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(D,F.o,0,.01,this),this.w=PropertyFactory.getProp(D,F.w,0,null,this),this.d=new DashProperty(D,F.d||{},"svg",this),this.c=PropertyFactory.getProp(D,F.c,1,255,this),this.style=B,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(D,F,B){this.initDynamicPropertyContainer(D),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(D,F.o,0,.01,this),this.c=PropertyFactory.getProp(D,F.c,1,255,this),this.style=B}function SVGNoStyleData(D,F,B){this.initDynamicPropertyContainer(D),this.getValue=this.iterateDynamicProperties,this.style=B}function GradientProperty(D,F,B){this.data=F,this.c=createTypedArray("uint8c",4*F.p);var O=F.k.k[0].s?F.k.k[0].s.length-4*F.p:F.k.k.length-4*F.p;this.o=createTypedArray("float32",O),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=O,this.initDynamicPropertyContainer(B),this.prop=PropertyFactory.getProp(D,F.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(D,F,B){this.initDynamicPropertyContainer(D),this.getValue=this.iterateDynamicProperties,this.initGradientData(D,F,B)}function SVGGradientStrokeStyleData(D,F,B){this.initDynamicPropertyContainer(D),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(D,F.w,0,null,this),this.d=new DashProperty(D,F.d||{},"svg",this),this.initGradientData(D,F,B),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(D,F,B){this.transform={mProps:D,op:F,container:B},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(D){if((this.elem.globalData.frameId!==this.frameId||D)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||D,this._mdf)){var F=0,B=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),F=0;F<B;F+=1)"o"!==this.dataProps[F].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[F].p.v:this.dashArray[F]=this.dataProps[F].p.v:this.dashoffset[0]=this.dataProps[F].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(D,F){for(var B=0,O=this.o.length/2;B<O;){if(Math.abs(D[4*B]-D[4*F+2*B])>.01)return!1;B+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var D=0,F=this.data.k.k.length;D<F;){if(!this.comparePoints(this.data.k.k[D].s,this.data.p))return!1;D+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(D){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||D){var F,B,O,G=4*this.data.p;for(F=0;F<G;F+=1)B=F%4==0?100:255,O=Math.round(this.prop.v[F]*B),this.c[F]!==O&&(this.c[F]=O,this._cmdf=!D);if(this.o.length)for(G=this.prop.v.length,F=4*this.data.p;F<G;F+=1)B=F%2==0?100:1,O=F%2==0?Math.round(100*this.prop.v[F]):this.prop.v[F],this.o[F-4*this.data.p]!==O&&(this.o[F-4*this.data.p]=O,this._omdf=!D);this._mdf=!D}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(D,F,B){this.o=PropertyFactory.getProp(D,F.o,0,.01,this),this.s=PropertyFactory.getProp(D,F.s,1,null,this),this.e=PropertyFactory.getProp(D,F.e,1,null,this),this.h=PropertyFactory.getProp(D,F.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(D,F.a||{k:0},0,degToRads,this),this.g=new GradientProperty(D,F.g,this),this.style=B,this.stops=[],this.setGradientData(B.pElem,F),this.setGradientOpacity(F,B),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(D,F){var B=createElementID(),O=createNS(1===F.t?"linearGradient":"radialGradient");O.setAttribute("id",B),O.setAttribute("spreadMethod","pad"),O.setAttribute("gradientUnits","userSpaceOnUse");var G,j,q,W=[];for(q=4*F.g.p,j=0;j<q;j+=4)G=createNS("stop"),O.appendChild(G),W.push(G);D.setAttribute("gf"===F.ty?"fill":"stroke","url("+getLocationHref()+"#"+B+")"),this.gf=O,this.cst=W},SVGGradientFillStyleData.prototype.setGradientOpacity=function(D,F){if(this.g._hasOpacity&&!this.g._collapsable){var B,O,G,j=createNS("mask"),q=createNS("path");j.appendChild(q);var W=createElementID(),Z=createElementID();j.setAttribute("id",Z);var rt=createNS(1===D.t?"linearGradient":"radialGradient");rt.setAttribute("id",W),rt.setAttribute("spreadMethod","pad"),rt.setAttribute("gradientUnits","userSpaceOnUse"),G=D.g.k.k[0].s?D.g.k.k[0].s.length:D.g.k.k.length;var Y=this.stops;for(O=4*D.g.p;O<G;O+=2)(B=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),rt.appendChild(B),Y.push(B);q.setAttribute("gf"===D.ty?"fill":"stroke","url("+getLocationHref()+"#"+W+")"),"gs"===D.ty&&(q.setAttribute("stroke-linecap",lineCapEnum[D.lc||2]),q.setAttribute("stroke-linejoin",lineJoinEnum[D.lj||2]),1===D.lj&&q.setAttribute("stroke-miterlimit",D.ml)),this.of=rt,this.ms=j,this.ost=Y,this.maskId=Z,F.msElem=q}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(D,F,B,O){if(0===F)return"";var G,j=D.o,q=D.i,W=D.v,Z=" M"+O.applyToPointStringified(W[0][0],W[0][1]);for(G=1;G<F;G+=1)Z+=" C"+O.applyToPointStringified(j[G-1][0],j[G-1][1])+" "+O.applyToPointStringified(q[G][0],q[G][1])+" "+O.applyToPointStringified(W[G][0],W[G][1]);return B&&F&&(Z+=" C"+O.applyToPointStringified(j[G-1][0],j[G-1][1])+" "+O.applyToPointStringified(q[0][0],q[0][1])+" "+O.applyToPointStringified(W[0][0],W[0][1]),Z+="z"),Z},SVGElementsRenderer=function(){var D=new Matrix,F=new Matrix;function B(rt,Y,K){(K||Y.transform.op._mdf)&&Y.transform.container.setAttribute("opacity",Y.transform.op.v),(K||Y.transform.mProps._mdf)&&Y.transform.container.setAttribute("transform",Y.transform.mProps.v.to2dCSS())}function O(){}function G(rt,Y,K){var et,tt,J,U,X,Q,it,at,st,ot,ft,pt=Y.styles.length,lt=Y.lvl;for(Q=0;Q<pt;Q+=1){if(U=Y.sh._mdf||K,Y.styles[Q].lvl<lt){for(at=F.reset(),ot=lt-Y.styles[Q].lvl,ft=Y.transformers.length-1;!U&&ot>0;)U=Y.transformers[ft].mProps._mdf||U,ot-=1,ft-=1;if(U)for(ot=lt-Y.styles[Q].lvl,ft=Y.transformers.length-1;ot>0;)at.transform((st=Y.transformers[ft].mProps.v.props)[0],st[1],st[2],st[3],st[4],st[5],st[6],st[7],st[8],st[9],st[10],st[11],st[12],st[13],st[14],st[15]),ot-=1,ft-=1}else at=D;if(tt=(it=Y.sh.paths)._length,U){for(J="",et=0;et<tt;et+=1)(X=it.shapes[et])&&X._length&&(J+=buildShapeString(X,X._length,X.c,at));Y.caches[Q]=J}else J=Y.caches[Q];Y.styles[Q].d+=!0===rt.hd?"":J,Y.styles[Q]._mdf=U||Y.styles[Q]._mdf}}function j(rt,Y,K){var et=Y.style;(Y.c._mdf||K)&&et.pElem.setAttribute("fill","rgb("+bmFloor(Y.c.v[0])+","+bmFloor(Y.c.v[1])+","+bmFloor(Y.c.v[2])+")"),(Y.o._mdf||K)&&et.pElem.setAttribute("fill-opacity",Y.o.v)}function q(rt,Y,K){W(rt,Y,K),Z(0,Y,K)}function W(rt,Y,K){var et,tt,J,U,X,Q=Y.gf,it=Y.g._hasOpacity,at=Y.s.v,st=Y.e.v;if((Y.o._mdf||K)&&Y.style.pElem.setAttribute("gf"===rt.ty?"fill-opacity":"stroke-opacity",Y.o.v),Y.s._mdf||K){var ft=1===rt.t?"x1":"cx",pt="x1"===ft?"y1":"cy";Q.setAttribute(ft,at[0]),Q.setAttribute(pt,at[1]),it&&!Y.g._collapsable&&(Y.of.setAttribute(ft,at[0]),Y.of.setAttribute(pt,at[1]))}if(Y.g._cmdf||K){var lt=Y.g.c;for(J=(et=Y.cst).length,tt=0;tt<J;tt+=1)(U=et[tt]).setAttribute("offset",lt[4*tt]+"%"),U.setAttribute("stop-color","rgb("+lt[4*tt+1]+","+lt[4*tt+2]+","+lt[4*tt+3]+")")}if(it&&(Y.g._omdf||K)){var ut=Y.g.o;for(J=(et=Y.g._collapsable?Y.cst:Y.ost).length,tt=0;tt<J;tt+=1)U=et[tt],Y.g._collapsable||U.setAttribute("offset",ut[2*tt]+"%"),U.setAttribute("stop-opacity",ut[2*tt+1])}if(1===rt.t)(Y.e._mdf||K)&&(Q.setAttribute("x2",st[0]),Q.setAttribute("y2",st[1]),it&&!Y.g._collapsable&&(Y.of.setAttribute("x2",st[0]),Y.of.setAttribute("y2",st[1])));else if((Y.s._mdf||Y.e._mdf||K)&&(X=Math.sqrt(Math.pow(at[0]-st[0],2)+Math.pow(at[1]-st[1],2)),Q.setAttribute("r",X),it&&!Y.g._collapsable&&Y.of.setAttribute("r",X)),Y.e._mdf||Y.h._mdf||Y.a._mdf||K){X||(X=Math.sqrt(Math.pow(at[0]-st[0],2)+Math.pow(at[1]-st[1],2)));var ct=Math.atan2(st[1]-at[1],st[0]-at[0]),nt=Y.h.v;nt>=1?nt=.99:nt<=-1&&(nt=-.99);var bt=X*nt,gt=Math.cos(ct+Y.a.v)*bt+at[0],mt=Math.sin(ct+Y.a.v)*bt+at[1];Q.setAttribute("fx",gt),Q.setAttribute("fy",mt),it&&!Y.g._collapsable&&(Y.of.setAttribute("fx",gt),Y.of.setAttribute("fy",mt))}}function Z(rt,Y,K){var et=Y.style,tt=Y.d;tt&&(tt._mdf||K)&&tt.dashStr&&(et.pElem.setAttribute("stroke-dasharray",tt.dashStr),et.pElem.setAttribute("stroke-dashoffset",tt.dashoffset[0])),Y.c&&(Y.c._mdf||K)&&et.pElem.setAttribute("stroke","rgb("+bmFloor(Y.c.v[0])+","+bmFloor(Y.c.v[1])+","+bmFloor(Y.c.v[2])+")"),(Y.o._mdf||K)&&et.pElem.setAttribute("stroke-opacity",Y.o.v),(Y.w._mdf||K)&&(et.pElem.setAttribute("stroke-width",Y.w.v),et.msElem&&et.msElem.setAttribute("stroke-width",Y.w.v))}return{createRenderFunction:function(rt){switch(rt.ty){case"fl":return j;case"gf":return W;case"gs":return q;case"st":return Z;case"sh":case"el":case"rc":case"sr":return G;case"tr":return B;case"no":return O;default:return null}}}}();function SVGShapeElement(D,F,B){this.shapes=[],this.shapesData=D.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(D,F,B),this.prevViewData=[]}function LetterProps(D,F,B,O,G,j){this.o=D,this.sw=F,this.sc=B,this.fc=O,this.m=G,this.p=j,this._mdf={o:!0,sw:!!F,sc:!!B,fc:!!O,m:!0,p:!0}}function TextProperty(D,F){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=F,this.elem=D,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var D,F,B,O,G=this.shapes.length,j=this.stylesList.length,q=[],W=!1;for(B=0;B<j;B+=1){for(O=this.stylesList[B],W=!1,q.length=0,D=0;D<G;D+=1)-1!==(F=this.shapes[D]).styles.indexOf(O)&&(q.push(F),W=F._isAnimated||W);q.length>1&&W&&this.setShapesAsAnimated(q)}},SVGShapeElement.prototype.setShapesAsAnimated=function(D){var F,B=D.length;for(F=0;F<B;F+=1)D[F].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(D,F){var B,O=new SVGStyleData(D,F),G=O.pElem;return"st"===D.ty?B=new SVGStrokeStyleData(this,D,O):"fl"===D.ty?B=new SVGFillStyleData(this,D,O):"gf"===D.ty||"gs"===D.ty?(B=new("gf"===D.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,D,O),this.globalData.defs.appendChild(B.gf),B.maskId&&(this.globalData.defs.appendChild(B.ms),this.globalData.defs.appendChild(B.of),G.setAttribute("mask","url("+getLocationHref()+"#"+B.maskId+")"))):"no"===D.ty&&(B=new SVGNoStyleData(this,D,O)),"st"!==D.ty&&"gs"!==D.ty||(G.setAttribute("stroke-linecap",lineCapEnum[D.lc||2]),G.setAttribute("stroke-linejoin",lineJoinEnum[D.lj||2]),G.setAttribute("fill-opacity","0"),1===D.lj&&G.setAttribute("stroke-miterlimit",D.ml)),2===D.r&&G.setAttribute("fill-rule","evenodd"),D.ln&&G.setAttribute("id",D.ln),D.cl&&G.setAttribute("class",D.cl),D.bm&&(G.style["mix-blend-mode"]=getBlendMode(D.bm)),this.stylesList.push(O),this.addToAnimatedContents(D,B),B},SVGShapeElement.prototype.createGroupElement=function(D){var F=new ShapeGroupData;return D.ln&&F.gr.setAttribute("id",D.ln),D.cl&&F.gr.setAttribute("class",D.cl),D.bm&&(F.gr.style["mix-blend-mode"]=getBlendMode(D.bm)),F},SVGShapeElement.prototype.createTransformElement=function(D,F){var B=TransformPropertyFactory.getTransformProperty(this,D,this),O=new SVGTransformData(B,B.o,F);return this.addToAnimatedContents(D,O),O},SVGShapeElement.prototype.createShapeElement=function(D,F,B){var O=4;"rc"===D.ty?O=5:"el"===D.ty?O=6:"sr"===D.ty&&(O=7);var G=new SVGShapeData(F,B,ShapePropertyFactory.getShapeProp(this,D,O,this));return this.shapes.push(G),this.addShapeToModifiers(G),this.addToAnimatedContents(D,G),G},SVGShapeElement.prototype.addToAnimatedContents=function(D,F){for(var B=0,O=this.animatedContents.length;B<O;){if(this.animatedContents[B].element===F)return;B+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(D),element:F,data:D})},SVGShapeElement.prototype.setElementStyles=function(D){var F,B=D.styles,O=this.stylesList.length;for(F=0;F<O;F+=1)this.stylesList[F].closed||B.push(this.stylesList[F])},SVGShapeElement.prototype.reloadShapes=function(){var D;this._isFirstFrame=!0;var F=this.itemsData.length;for(D=0;D<F;D+=1)this.prevViewData[D]=this.itemsData[D];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),F=this.dynamicProperties.length,D=0;D<F;D+=1)this.dynamicProperties[D].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(D,F,B,O,G,j,q){var W,Z,rt,K,et,tt=[].concat(j),J=D.length-1,U=[],X=[];for(W=J;W>=0;W-=1){if((et=this.searchProcessedElement(D[W]))?F[W]=B[et-1]:D[W]._render=q,"fl"===D[W].ty||"st"===D[W].ty||"gf"===D[W].ty||"gs"===D[W].ty||"no"===D[W].ty)et?F[W].style.closed=!1:F[W]=this.createStyleElement(D[W],G),D[W]._render&&F[W].style.pElem.parentNode!==O&&O.appendChild(F[W].style.pElem),U.push(F[W].style);else if("gr"===D[W].ty){if(et)for(rt=F[W].it.length,Z=0;Z<rt;Z+=1)F[W].prevViewData[Z]=F[W].it[Z];else F[W]=this.createGroupElement(D[W]);this.searchShapes(D[W].it,F[W].it,F[W].prevViewData,F[W].gr,G+1,tt,q),D[W]._render&&F[W].gr.parentNode!==O&&O.appendChild(F[W].gr)}else"tr"===D[W].ty?(et||(F[W]=this.createTransformElement(D[W],O)),tt.push(F[W].transform)):"sh"===D[W].ty||"rc"===D[W].ty||"el"===D[W].ty||"sr"===D[W].ty?(et||(F[W]=this.createShapeElement(D[W],tt,G)),this.setElementStyles(F[W])):"tm"===D[W].ty||"rd"===D[W].ty||"ms"===D[W].ty||"pb"===D[W].ty||"zz"===D[W].ty||"op"===D[W].ty?(et?(K=F[W]).closed=!1:((K=ShapeModifiers.getModifier(D[W].ty)).init(this,D[W]),F[W]=K,this.shapeModifiers.push(K)),X.push(K)):"rp"===D[W].ty&&(et?(K=F[W]).closed=!0:(K=ShapeModifiers.getModifier(D[W].ty),F[W]=K,K.init(this,D,W,F),this.shapeModifiers.push(K),q=!1),X.push(K));this.addProcessedElement(D[W],W+1)}for(J=U.length,W=0;W<J;W+=1)U[W].closed=!0;for(J=X.length,W=0;W<J;W+=1)X[W].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var D;this.renderModifiers();var F=this.stylesList.length;for(D=0;D<F;D+=1)this.stylesList[D].reset();for(this.renderShape(),D=0;D<F;D+=1)(this.stylesList[D]._mdf||this._isFirstFrame)&&(this.stylesList[D].msElem&&(this.stylesList[D].msElem.setAttribute("d",this.stylesList[D].d),this.stylesList[D].d="M0 0"+this.stylesList[D].d),this.stylesList[D].pElem.setAttribute("d",this.stylesList[D].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var D,F,B=this.animatedContents.length;for(D=0;D<B;D+=1)F=this.animatedContents[D],(this._isFirstFrame||F.element._isAnimated)&&!0!==F.data&&F.fn(F.data,F.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(D,F,B,O,G,j){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==D&&(this.o=D,this._mdf.o=!0,q=!0),this.sw!==F&&(this.sw=F,this._mdf.sw=!0,q=!0),this.sc!==B&&(this.sc=B,this._mdf.sc=!0,q=!0),this.fc!==O&&(this.fc=O,this._mdf.fc=!0,q=!0),this.m!==G&&(this.m=G,this._mdf.m=!0,q=!0),!j.length||this.p[0]===j[0]&&this.p[1]===j[1]&&this.p[4]===j[4]&&this.p[5]===j[5]&&this.p[12]===j[12]&&this.p[13]===j[13]||(this.p=j,this._mdf.p=!0,q=!0),q},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(D,F){for(var B in F)Object.prototype.hasOwnProperty.call(F,B)&&(D[B]=F[B]);return D},TextProperty.prototype.setCurrentData=function(D){D.__complete||this.completeTextData(D),this.currentData=D,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(D){this.effectsSequence.push(D),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(D){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||D){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var F=this.currentData,B=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var O;this.lock=!0,this._mdf=!1;var G=this.effectsSequence.length,j=D||this.data.d.k[this.keysIndex].s;for(O=0;O<G;O+=1)j=this.effectsSequence[O](B!==this.keysIndex?j:this.currentData,j.t);F!==j&&this.setCurrentData(j),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var D=this.data.d.k,F=this.elem.comp.renderedFrame,B=0,O=D.length;B<=O-1&&!(B===O-1||D[B+1].t>F);)B+=1;return this.keysIndex!==B&&(this.keysIndex=B),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(D){for(var F,B,O=[],G=0,j=D.length,q=!1;G<j;)F=D.charCodeAt(G),FontManager.isCombinedCharacter(F)?O[O.length-1]+=D.charAt(G):F>=55296&&F<=56319?(B=D.charCodeAt(G+1))>=56320&&B<=57343?(q||FontManager.isModifier(F,B)?(O[O.length-1]+=D.substr(G,2),q=!1):O.push(D.substr(G,2)),G+=1):O.push(D.charAt(G)):F>56319?(B=D.charCodeAt(G+1),FontManager.isZeroWidthJoiner(F,B)?(q=!0,O[O.length-1]+=D.substr(G,2),G+=1):O.push(D.charAt(G))):FontManager.isZeroWidthJoiner(F)?(O[O.length-1]+=D.charAt(G),q=!0):O.push(D.charAt(G)),G+=1;return O},TextProperty.prototype.completeTextData=function(D){D.__complete=!0;var F,B,O,G,j,q,W,Z=this.elem.globalData.fontManager,rt=this.data,Y=[],K=0,et=rt.m.g,tt=0,J=0,U=0,X=[],Q=0,it=0,at=Z.getFontByName(D.f),st=0,ot=getFontProperties(at);D.fWeight=ot.weight,D.fStyle=ot.style,D.finalSize=D.s,D.finalText=this.buildFinalText(D.t),B=D.finalText.length,D.finalLineHeight=D.lh;var ft,pt=D.tr/1e3*D.finalSize;if(D.sz)for(var lt,ut,ct=!0,nt=D.sz[0],bt=D.sz[1];ct;){lt=0,Q=0,B=(ut=this.buildFinalText(D.t)).length,pt=D.tr/1e3*D.finalSize;var gt=-1;for(F=0;F<B;F+=1)ft=ut[F].charCodeAt(0),O=!1," "===ut[F]?gt=F:13!==ft&&3!==ft||(Q=0,O=!0,lt+=D.finalLineHeight||1.2*D.finalSize),Z.chars?(W=Z.getCharData(ut[F],at.fStyle,at.fFamily),st=O?0:W.w*D.finalSize/100):st=Z.measureText(ut[F],D.f,D.finalSize),Q+st>nt&&" "!==ut[F]?(-1===gt?B+=1:F=gt,lt+=D.finalLineHeight||1.2*D.finalSize,ut.splice(F,gt===F?1:0,"\r"),gt=-1,Q=0):(Q+=st,Q+=pt);lt+=at.ascent*D.finalSize/100,this.canResize&&D.finalSize>this.minimumFontSize&&bt<lt?(D.finalSize-=1,D.finalLineHeight=D.finalSize*D.lh/D.s):(D.finalText=ut,B=D.finalText.length,ct=!1)}Q=-pt,st=0;var mt,vt=0;for(F=0;F<B;F+=1)if(O=!1,13===(ft=(mt=D.finalText[F]).charCodeAt(0))||3===ft?(vt=0,X.push(Q),it=Q>it?Q:it,Q=-2*pt,G="",O=!0,U+=1):G=mt,Z.chars?(W=Z.getCharData(mt,at.fStyle,Z.getFontByName(D.f).fFamily),st=O?0:W.w*D.finalSize/100):st=Z.measureText(G,D.f,D.finalSize)," "===mt?vt+=st+pt:(Q+=st+pt+vt,vt=0),Y.push({l:st,an:st,add:tt,n:O,anIndexes:[],val:G,line:U,animatorJustifyOffset:0}),2==et){if(tt+=st,""===G||" "===G||F===B-1){for(""!==G&&" "!==G||(tt-=st);J<=F;)Y[J].an=tt,Y[J].ind=K,Y[J].extra=st,J+=1;K+=1,tt=0}}else if(3==et){if(tt+=st,""===G||F===B-1){for(""===G&&(tt-=st);J<=F;)Y[J].an=tt,Y[J].ind=K,Y[J].extra=st,J+=1;tt=0,K+=1}}else Y[K].ind=K,Y[K].extra=0,K+=1;if(D.l=Y,it=Q>it?Q:it,X.push(Q),D.sz)D.boxWidth=D.sz[0],D.justifyOffset=0;else switch(D.boxWidth=it,D.j){case 1:D.justifyOffset=-D.boxWidth;break;case 2:D.justifyOffset=-D.boxWidth/2;break;default:D.justifyOffset=0}D.lineWidths=X;var Pt,dt,ht,yt,Et=rt.a;q=Et.length;var kt=[];for(j=0;j<q;j+=1){for((Pt=Et[j]).a.sc&&(D.strokeColorAnim=!0),Pt.a.sw&&(D.strokeWidthAnim=!0),(Pt.a.fc||Pt.a.fh||Pt.a.fs||Pt.a.fb)&&(D.fillColorAnim=!0),yt=0,ht=Pt.s.b,F=0;F<B;F+=1)(dt=Y[F]).anIndexes[j]=yt,(1==ht&&""!==dt.val||2==ht&&""!==dt.val&&" "!==dt.val||3==ht&&(dt.n||" "==dt.val||F==B-1)||4==ht&&(dt.n||F==B-1))&&(1===Pt.s.rn&&kt.push(yt),yt+=1);rt.a[j].s.totalChars=yt;var Tt,Mt=-1;if(1===Pt.s.rn)for(F=0;F<B;F+=1)Mt!=(dt=Y[F]).anIndexes[j]&&(Mt=dt.anIndexes[j],Tt=kt.splice(Math.floor(Math.random()*kt.length),1)[0]),dt.anIndexes[j]=Tt}D.yOffset=D.finalLineHeight||1.2*D.finalSize,D.ls=D.ls||0,D.ascent=at.ascent*D.finalSize/100},TextProperty.prototype.updateDocumentData=function(D,F){var B=this.copyData({},this.data.d.k[F=void 0===F?this.keysIndex:F].s);B=this.copyData(B,D),this.data.d.k[F].s=B,this.recalculate(F),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(D){var F=this.data.d.k[D].s;F.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(F)},TextProperty.prototype.canResizeFont=function(D){this.canResize=D,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(D){this.minimumFontSize=Math.floor(D)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var D=Math.max,F=Math.min,B=Math.floor;function O(G,j){this._currentTextLength=-1,this.k=!1,this.data=j,this.elem=G,this.comp=G.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(G),this.s=PropertyFactory.getProp(G,j.s||{k:0},0,0,this),this.e="e"in j?PropertyFactory.getProp(G,j.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(G,j.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(G,j.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(G,j.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(G,j.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(G,j.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return O.prototype={getMult:function(G){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var j=0,q=0,W=1,Z=1;this.ne.v>0?j=this.ne.v/100:q=-this.ne.v/100,this.xe.v>0?W=1-this.xe.v/100:Z=1+this.xe.v/100;var rt=BezierFactory.getBezierEasing(j,q,W,Z).get,Y=0,K=this.finalS,et=this.finalE,tt=this.data.sh;if(2===tt)Y=rt(Y=et===K?G>=et?1:0:D(0,F(.5/(et-K)+(G-K)/(et-K),1)));else if(3===tt)Y=rt(Y=et===K?G>=et?0:1:1-D(0,F(.5/(et-K)+(G-K)/(et-K),1)));else if(4===tt)et===K?Y=0:(Y=D(0,F(.5/(et-K)+(G-K)/(et-K),1)))<.5?Y*=2:Y=1-2*(Y-.5),Y=rt(Y);else if(5===tt){if(et===K)Y=0;else{var J=et-K,U=-J/2+(G=F(D(0,G+.5-K),et-K)),X=J/2;Y=Math.sqrt(1-U*U/(X*X))}Y=rt(Y)}else 6===tt?(et===K?Y=0:(G=F(D(0,G+.5-K),et-K),Y=(1+Math.cos(Math.PI+2*Math.PI*G/(et-K)))/2),Y=rt(Y)):(G>=B(K)&&(Y=D(0,F(G-K<0?F(et,1)-(K-G):et-G,1))),Y=rt(Y));if(100!==this.sm.v){var Q=.01*this.sm.v;0===Q&&(Q=1e-8);var it=.5-.5*Q;Y<it?Y=0:(Y=(Y-it)/Q)>1&&(Y=1)}return Y*this.a.v},getValue:function(G){this.iterateDynamicProperties(),this._mdf=G||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,G&&2===this.data.r&&(this.e.v=this._currentTextLength);var j=2===this.data.r?1:100/this.data.totalChars,q=this.o.v/j,W=this.s.v/j+q,Z=this.e.v/j+q;if(W>Z){var rt=W;W=Z,Z=rt}this.finalS=W,this.finalE=Z}},extendPrototype([DynamicPropertyContainer],O),{getTextSelectorProp:function(G,j,q){return new O(G,j,q)}}}();function TextAnimatorDataProperty(D,F,B){var O={propType:!1},G=PropertyFactory.getProp,j=F.a;this.a={r:j.r?G(D,j.r,0,degToRads,B):O,rx:j.rx?G(D,j.rx,0,degToRads,B):O,ry:j.ry?G(D,j.ry,0,degToRads,B):O,sk:j.sk?G(D,j.sk,0,degToRads,B):O,sa:j.sa?G(D,j.sa,0,degToRads,B):O,s:j.s?G(D,j.s,1,.01,B):O,a:j.a?G(D,j.a,1,0,B):O,o:j.o?G(D,j.o,0,.01,B):O,p:j.p?G(D,j.p,1,0,B):O,sw:j.sw?G(D,j.sw,0,0,B):O,sc:j.sc?G(D,j.sc,1,0,B):O,fc:j.fc?G(D,j.fc,1,0,B):O,fh:j.fh?G(D,j.fh,0,0,B):O,fs:j.fs?G(D,j.fs,0,.01,B):O,fb:j.fb?G(D,j.fb,0,.01,B):O,t:j.t?G(D,j.t,0,0,B):O},this.s=TextSelectorProp.getTextSelectorProp(D,F.s,B),this.s.t=F.s.t}function TextAnimatorProperty(D,F,B){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=D,this._renderType=F,this._elem=B,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(B)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var D,B=this._textData.a.length,O=PropertyFactory.getProp;for(D=0;D<B;D+=1)this._animatorsData[D]=new TextAnimatorDataProperty(this._elem,this._textData.a[D],this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:O(this._elem,this._textData.p.a,0,0,this),f:O(this._elem,this._textData.p.f,0,0,this),l:O(this._elem,this._textData.p.l,0,0,this),r:O(this._elem,this._textData.p.r,0,0,this),p:O(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=O(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(D,F){if(this.lettersChangedFlag=F,this._mdf||this._isFirstFrame||F||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var B,O,G,j,q,W,Z,rt,Y,K,et,tt,J,U,X,Q,it,st,ot=this._moreOptions.alignment.v,ft=this._animatorsData,pt=this._textData,lt=this.mHelper,ut=this._renderType,ct=this.renderedLetters.length,nt=D.l;if(this._hasMaskedPath){if(st=this._pathData.m,!this._pathData.n||this._pathData._mdf){var bt,gt=st.v;for(this._pathData.r.v&&(gt=gt.reverse()),q={tLength:0,segments:[]},j=gt._length-1,Q=0,G=0;G<j;G+=1)bt=bez.buildBezierData(gt.v[G],gt.v[G+1],[gt.o[G][0]-gt.v[G][0],gt.o[G][1]-gt.v[G][1]],[gt.i[G+1][0]-gt.v[G+1][0],gt.i[G+1][1]-gt.v[G+1][1]]),q.tLength+=bt.segmentLength,q.segments.push(bt),Q+=bt.segmentLength;G=j,st.v.c&&(bt=bez.buildBezierData(gt.v[G],gt.v[0],[gt.o[G][0]-gt.v[G][0],gt.o[G][1]-gt.v[G][1]],[gt.i[0][0]-gt.v[0][0],gt.i[0][1]-gt.v[0][1]]),q.tLength+=bt.segmentLength,q.segments.push(bt),Q+=bt.segmentLength),this._pathData.pi=q}if(et=0,K=1,rt=0,Y=!0,U=(q=this._pathData.pi).segments,(W=this._pathData.f.v)<0&&st.v.c)for(q.tLength<Math.abs(W)&&(W=-Math.abs(W)%q.tLength),K=(J=U[et=U.length-1].points).length-1;W<0;)W+=J[K].partialLength,(K-=1)<0&&(K=(J=U[et-=1].points).length-1);tt=(J=U[et].points)[K-1],X=(Z=J[K]).partialLength}j=nt.length,B=0,O=0;var mt,vt,Pt,dt,ht,yt=1.2*D.finalSize*.714,Et=!0;Pt=ft.length;var kt,Tt,Mt,St,At,xt,wt,Ct,It,Bt,Vt,Ot,_t=-1,Ht=W,qt=et,Ut=K,Wt=-1,Rt="",zt=this.defaultPropsArray;if(2===D.j||1===D.j){var Dt=0,Nt=0,Gt=2===D.j?-.5:-1,Lt=0,$t=!0;for(G=0;G<j;G+=1)if(nt[G].n){for(Dt&&(Dt+=Nt);Lt<G;)nt[Lt].animatorJustifyOffset=Dt,Lt+=1;Dt=0,$t=!0}else{for(vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).t.propType&&($t&&2===D.j&&(Nt+=mt.t.v*Gt),(ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars)).length?Dt+=mt.t.v*ht[0]*Gt:Dt+=mt.t.v*ht*Gt);$t=!1}for(Dt&&(Dt+=Nt);Lt<G;)nt[Lt].animatorJustifyOffset=Dt,Lt+=1}for(G=0;G<j;G+=1){if(lt.reset(),St=1,nt[G].n)B=0,O+=D.yOffset,O+=Et?1:0,W=Ht,Et=!1,this._hasMaskedPath&&(tt=(J=U[et=qt].points)[(K=Ut)-1],X=(Z=J[K]).partialLength,rt=0),Rt="",Vt="",It="",Ot="",zt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Wt!==nt[G].line){switch(D.j){case 1:W+=Q-D.lineWidths[nt[G].line];break;case 2:W+=(Q-D.lineWidths[nt[G].line])/2}Wt=nt[G].line}_t!==nt[G].ind&&(nt[_t]&&(W+=nt[_t].extra),W+=nt[G].an/2,_t=nt[G].ind),W+=ot[0]*nt[G].an*.005;var Ft=0;for(vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).p.propType&&((ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars)).length?Ft+=mt.p.v[0]*ht[0]:Ft+=mt.p.v[0]*ht),mt.a.propType&&((ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars)).length?Ft+=mt.a.v[0]*ht[0]:Ft+=mt.a.v[0]*ht);for(Y=!0,this._pathData.a.v&&(W=.5*nt[0].an+(Q-this._pathData.f.v-.5*nt[0].an-.5*nt[nt.length-1].an)*_t/(j-1),W+=this._pathData.f.v);Y;)rt+X>=W+Ft||!J?(Tt=tt.point[0]+(Z.point[0]-tt.point[0])*(it=(W+Ft-rt)/Z.partialLength),Mt=tt.point[1]+(Z.point[1]-tt.point[1])*it,lt.translate(-ot[0]*nt[G].an*.005,-ot[1]*yt*.01),Y=!1):J&&(rt+=Z.partialLength,(K+=1)>=J.length&&(K=0,U[et+=1]?J=U[et].points:st.v.c?(K=0,J=U[et=0].points):(rt-=Z.partialLength,J=null)),J&&(tt=Z,X=(Z=J[K]).partialLength));lt.translate(-(kt=nt[G].an/2-nt[G].add),0,0)}else lt.translate(-(kt=nt[G].an/2-nt[G].add),0,0),lt.translate(-ot[0]*nt[G].an*.005,-ot[1]*yt*.01,0);for(vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).t.propType&&(ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars),0===B&&0===D.j||(this._hasMaskedPath?W+=ht.length?mt.t.v*ht[0]:mt.t.v*ht:B+=ht.length?mt.t.v*ht[0]:mt.t.v*ht));for(D.strokeWidthAnim&&(xt=D.sw||0),D.strokeColorAnim&&(At=D.sc?[D.sc[0],D.sc[1],D.sc[2]]:[0,0,0]),D.fillColorAnim&&D.fc&&(wt=[D.fc[0],D.fc[1],D.fc[2]]),vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).a.propType&&((ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars)).length?lt.translate(-mt.a.v[0]*ht[0],-mt.a.v[1]*ht[1],mt.a.v[2]*ht[2]):lt.translate(-mt.a.v[0]*ht,-mt.a.v[1]*ht,mt.a.v[2]*ht));for(vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).s.propType&&((ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars)).length?lt.scale(1+(mt.s.v[0]-1)*ht[0],1+(mt.s.v[1]-1)*ht[1],1):lt.scale(1+(mt.s.v[0]-1)*ht,1+(mt.s.v[1]-1)*ht,1));for(vt=0;vt<Pt;vt+=1){if(mt=ft[vt].a,ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars),mt.sk.propType&&(ht.length?lt.skewFromAxis(-mt.sk.v*ht[0],mt.sa.v*ht[1]):lt.skewFromAxis(-mt.sk.v*ht,mt.sa.v*ht)),mt.r.propType&&lt.rotateZ(ht.length?-mt.r.v*ht[2]:-mt.r.v*ht),mt.ry.propType&&lt.rotateY(ht.length?mt.ry.v*ht[1]:mt.ry.v*ht),mt.rx.propType&&lt.rotateX(ht.length?mt.rx.v*ht[0]:mt.rx.v*ht),mt.o.propType&&(St+=ht.length?(mt.o.v*ht[0]-St)*ht[0]:(mt.o.v*ht-St)*ht),D.strokeWidthAnim&&mt.sw.propType&&(xt+=ht.length?mt.sw.v*ht[0]:mt.sw.v*ht),D.strokeColorAnim&&mt.sc.propType)for(Ct=0;Ct<3;Ct+=1)At[Ct]+=ht.length?(mt.sc.v[Ct]-At[Ct])*ht[0]:(mt.sc.v[Ct]-At[Ct])*ht;if(D.fillColorAnim&&D.fc){if(mt.fc.propType)for(Ct=0;Ct<3;Ct+=1)wt[Ct]+=ht.length?(mt.fc.v[Ct]-wt[Ct])*ht[0]:(mt.fc.v[Ct]-wt[Ct])*ht;mt.fh.propType&&(wt=addHueToRGB(wt,ht.length?mt.fh.v*ht[0]:mt.fh.v*ht)),mt.fs.propType&&(wt=addSaturationToRGB(wt,ht.length?mt.fs.v*ht[0]:mt.fs.v*ht)),mt.fb.propType&&(wt=addBrightnessToRGB(wt,ht.length?mt.fb.v*ht[0]:mt.fb.v*ht))}}for(vt=0;vt<Pt;vt+=1)(mt=ft[vt].a).p.propType&&(ht=ft[vt].s.getMult(nt[G].anIndexes[vt],pt.a[vt].s.totalChars),this._hasMaskedPath?ht.length?lt.translate(0,mt.p.v[1]*ht[0],-mt.p.v[2]*ht[1]):lt.translate(0,mt.p.v[1]*ht,-mt.p.v[2]*ht):ht.length?lt.translate(mt.p.v[0]*ht[0],mt.p.v[1]*ht[1],-mt.p.v[2]*ht[2]):lt.translate(mt.p.v[0]*ht,mt.p.v[1]*ht,-mt.p.v[2]*ht));if(D.strokeWidthAnim&&(It=xt<0?0:xt),D.strokeColorAnim&&(Bt="rgb("+Math.round(255*At[0])+","+Math.round(255*At[1])+","+Math.round(255*At[2])+")"),D.fillColorAnim&&D.fc&&(Vt="rgb("+Math.round(255*wt[0])+","+Math.round(255*wt[1])+","+Math.round(255*wt[2])+")"),this._hasMaskedPath){if(lt.translate(0,-D.ls),lt.translate(0,ot[1]*yt*.01+O,0),this._pathData.p.v){var jt=180*Math.atan((Z.point[1]-tt.point[1])/(Z.point[0]-tt.point[0]))/Math.PI;Z.point[0]<tt.point[0]&&(jt+=180),lt.rotate(-jt*Math.PI/180)}lt.translate(Tt,Mt,0),W-=ot[0]*nt[G].an*.005,nt[G+1]&&_t!==nt[G+1].ind&&(W+=nt[G].an/2,W+=.001*D.tr*D.finalSize)}else{switch(lt.translate(B,O,0),D.ps&&lt.translate(D.ps[0],D.ps[1]+D.ascent,0),D.j){case 1:lt.translate(nt[G].animatorJustifyOffset+D.justifyOffset+(D.boxWidth-D.lineWidths[nt[G].line]),0,0);break;case 2:lt.translate(nt[G].animatorJustifyOffset+D.justifyOffset+(D.boxWidth-D.lineWidths[nt[G].line])/2,0,0)}lt.translate(0,-D.ls),lt.translate(kt,0,0),lt.translate(ot[0]*nt[G].an*.005,ot[1]*yt*.01,0),B+=nt[G].l+.001*D.tr*D.finalSize}"html"===ut?Rt=lt.toCSS():"svg"===ut?Rt=lt.to2dCSS():zt=[lt.props[0],lt.props[1],lt.props[2],lt.props[3],lt.props[4],lt.props[5],lt.props[6],lt.props[7],lt.props[8],lt.props[9],lt.props[10],lt.props[11],lt.props[12],lt.props[13],lt.props[14],lt.props[15]],Ot=St}ct<=G?(dt=new LetterProps(Ot,It,Bt,Vt,Rt,zt),this.renderedLetters.push(dt),ct+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(dt=this.renderedLetters[G]).update(Ot,It,Bt,Vt,Rt,zt)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(D,F,B){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(D,F,B),this.textProperty=new TextProperty(this,D.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(D.t,this.renderType,this),this.initTransform(D,F,B),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(D){this._mdf=!1,this.prepareRenderableFrame(D),this.prepareProperties(D,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(D,F){var B,O,G=F.length,j="";for(B=0;B<G;B+=1)"sh"===F[B].ty&&(j+=buildShapeString(O=F[B].ks.k,O.i.length,!0,D));return j},ITextElement.prototype.updateDocumentData=function(D,F){this.textProperty.updateDocumentData(D,F)},ITextElement.prototype.canResizeFont=function(D){this.textProperty.canResizeFont(D)},ITextElement.prototype.setMinimumFontSize=function(D){this.textProperty.setMinimumFontSize(D)},ITextElement.prototype.applyTextPropertiesToMatrix=function(D,F,B,O,G){switch(D.ps&&F.translate(D.ps[0],D.ps[1]+D.ascent,0),F.translate(0,-D.ls,0),D.j){case 1:F.translate(D.justifyOffset+(D.boxWidth-D.lineWidths[B]),0,0);break;case 2:F.translate(D.justifyOffset+(D.boxWidth-D.lineWidths[B])/2,0,0)}F.translate(O,G,0)},ITextElement.prototype.buildColor=function(D){return"rgb("+Math.round(255*D[0])+","+Math.round(255*D[1])+","+Math.round(255*D[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(D,F,B){this.textSpans=[],this.renderType="svg",this.initElement(D,F,B)}function ISolidElement(D,F,B){this.initElement(D,F,B)}function NullElement(D,F,B){this.initFrame(),this.initBaseData(D,F,B),this.initFrame(),this.initTransform(D,F,B),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(D,F,B){this.layers=D.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(D,F,B),this.tm=D.tm?PropertyFactory.getProp(this,D.tm,0,F.frameRate,this):{_placeholder:!0}}function SVGRenderer(D,F){this.animationItem=D,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var B="";if(F&&F.title){var O=createNS("title"),G=createElementID();O.setAttribute("id",G),O.textContent=F.title,this.svgElement.appendChild(O),B+=G}if(F&&F.description){var j=createNS("desc"),q=createElementID();j.setAttribute("id",q),j.textContent=F.description,this.svgElement.appendChild(j),B+=" "+q}B&&this.svgElement.setAttribute("aria-labelledby",B);var W=createNS("defs");this.svgElement.appendChild(W);var Z=createNS("g");this.svgElement.appendChild(Z),this.layerElement=Z,this.renderConfig={preserveAspectRatio:F&&F.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:F&&F.contentVisibility||"visible",progressiveLoad:F&&F.progressiveLoad||!1,hideOnTransparent:!(F&&!1===F.hideOnTransparent),viewBoxOnly:F&&F.viewBoxOnly||!1,viewBoxSize:F&&F.viewBoxSize||!1,className:F&&F.className||"",id:F&&F.id||"",focusable:F&&F.focusable,filterSize:{width:F&&F.filterSize&&F.filterSize.width||"100%",height:F&&F.filterSize&&F.filterSize.height||"100%",x:F&&F.filterSize&&F.filterSize.x||"0%",y:F&&F.filterSize&&F.filterSize.y||"0%"},width:F&&F.width,height:F&&F.height,runExpressions:!F||void 0===F.runExpressions||F.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:W,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var D;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),D=0;D<15;D+=1)this.saved[D]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(D,F){var B;this.data=D,this.element=F,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var O=this.masksProperties.length,G=!1;for(B=0;B<O;B+=1)"n"!==this.masksProperties[B].mode&&(G=!0),this.viewData[B]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[B],3);this.hasMasks=G,G&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(D,F,B,O){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var G,j=4;"rc"===F.ty?j=5:"el"===F.ty?j=6:"sr"===F.ty&&(j=7),this.sh=ShapePropertyFactory.getShapeProp(D,F,j,D);var q,W=B.length;for(G=0;G<W;G+=1)B[G].closed||(q={transforms:O.addTransformSequence(B[G].transforms),trNodes:[]},this.styledShapes.push(q),B[G].elements.push(q))}function CVShapeElement(D,F,B){this.shapes=[],this.shapesData=D.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(D,F,B)}function CVTextElement(D,F,B){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(D,F,B)}function CVImageElement(D,F,B){this.assetData=F.getAssetData(D.refId),this.img=F.imageLoader.getAsset(this.assetData),this.initElement(D,F,B)}function CVSolidElement(D,F,B){this.initElement(D,F,B)}function CanvasRendererBase(D,F){this.animationItem=D,this.renderConfig={clearCanvas:!F||void 0===F.clearCanvas||F.clearCanvas,context:F&&F.context||null,progressiveLoad:F&&F.progressiveLoad||!1,preserveAspectRatio:F&&F.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:F&&F.contentVisibility||"visible",className:F&&F.className||"",id:F&&F.id||""},this.renderConfig.dpr=F&&F.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=F&&F.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(D,F,B){this.completeLayers=!1,this.layers=D.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(D,F,B),this.tm=D.tm?PropertyFactory.getProp(this,D.tm,0,F.frameRate,this):{_placeholder:!0}}function CanvasRenderer(D,F){this.animationItem=D,this.renderConfig={clearCanvas:!F||void 0===F.clearCanvas||F.clearCanvas,context:F&&F.context||null,progressiveLoad:F&&F.progressiveLoad||!1,preserveAspectRatio:F&&F.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:F&&F.contentVisibility||"visible",className:F&&F.className||"",id:F&&F.id||"",runExpressions:!F||void 0===F.runExpressions||F.runExpressions},this.renderConfig.dpr=F&&F.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=F&&F.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(D,F,B){this.initElement(D,F,B)}function HShapeElement(D,F,B){this.shapes=[],this.shapesData=D.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(D,F,B),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(D,F,B){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(D,F,B)}function HCameraElement(D,F,B){this.initFrame(),this.initBaseData(D,F,B),this.initHierarchy();var O=PropertyFactory.getProp;if(this.pe=O(this,D.pe,0,0,this),D.ks.p.s?(this.px=O(this,D.ks.p.x,1,0,this),this.py=O(this,D.ks.p.y,1,0,this),this.pz=O(this,D.ks.p.z,1,0,this)):this.p=O(this,D.ks.p,1,0,this),D.ks.a&&(this.a=O(this,D.ks.a,1,0,this)),D.ks.or.k.length&&D.ks.or.k[0].to){var G,j=D.ks.or.k.length;for(G=0;G<j;G+=1)D.ks.or.k[G].to=null,D.ks.or.k[G].ti=null}this.or=O(this,D.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=O(this,D.ks.rx,0,degToRads,this),this.ry=O(this,D.ks.ry,0,degToRads,this),this.rz=O(this,D.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(D,F,B){this.assetData=F.getAssetData(D.refId),this.initElement(D,F,B)}function HybridRendererBase(D,F){this.animationItem=D,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:F&&F.className||"",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(F&&!1===F.hideOnTransparent),filterSize:{width:F&&F.filterSize&&F.filterSize.width||"400%",height:F&&F.filterSize&&F.filterSize.height||"400%",x:F&&F.filterSize&&F.filterSize.x||"-100%",y:F&&F.filterSize&&F.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(D,F,B){this.layers=D.layers,this.supports3d=!D.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(D,F,B),this.tm=D.tm?PropertyFactory.getProp(this,D.tm,0,F.frameRate,this):{_placeholder:!0}}function HybridRenderer(D,F){this.animationItem=D,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:F&&F.className||"",imagePreserveAspectRatio:F&&F.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(F&&!1===F.hideOnTransparent),filterSize:{width:F&&F.filterSize&&F.filterSize.width||"400%",height:F&&F.filterSize&&F.filterSize.height||"400%",x:F&&F.filterSize&&F.filterSize.x||"-100%",y:F&&F.filterSize&&F.filterSize.y||"-100%"},runExpressions:!F||void 0===F.runExpressions||F.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(D){for(var F=0,B=D.length,O=[],G="";F<B;)D[F]===String.fromCharCode(13)||D[F]===String.fromCharCode(3)?(O.push(G),G=""):G+=D[F],F+=1;return O.push(G),O},SVGTextLottieElement.prototype.buildShapeData=function(D,F){if(D.shapes&&D.shapes.length){var B=D.shapes[0];if(B.it){var O=B.it[B.it.length-1];O.s&&(O.s.k[0]=F,O.s.k[1]=F)}}return D},SVGTextLottieElement.prototype.buildNewText=function(){var D,F;this.addDynamicProperty(this);var B=this.textProperty.currentData;this.renderedLetters=createSizedArray(B?B.l.length:0),this.layerElement.setAttribute("fill",B.fc?this.buildColor(B.fc):"rgba(0,0,0,0)"),B.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(B.sc)),this.layerElement.setAttribute("stroke-width",B.sw)),this.layerElement.setAttribute("font-size",B.finalSize);var O=this.globalData.fontManager.getFontByName(B.f);if(O.fClass)this.layerElement.setAttribute("class",O.fClass);else{this.layerElement.setAttribute("font-family",O.fFamily);var G=B.fWeight;this.layerElement.setAttribute("font-style",B.fStyle),this.layerElement.setAttribute("font-weight",G)}this.layerElement.setAttribute("aria-label",B.t);var q,W=B.l||[],Z=!!this.globalData.fontManager.chars;F=W.length;var rt=this.mHelper,Y=this.data.singleShape,K=0,et=0,tt=!0,J=.001*B.tr*B.finalSize;if(!Y||Z||B.sz){var U,X=this.textSpans.length;for(D=0;D<F;D+=1){if(this.textSpans[D]||(this.textSpans[D]={span:null,childSpan:null,glyph:null}),!Z||!Y||0===D){if(q=X>D?this.textSpans[D].span:createNS(Z?"g":"text"),X<=D){if(q.setAttribute("stroke-linecap","butt"),q.setAttribute("stroke-linejoin","round"),q.setAttribute("stroke-miterlimit","4"),this.textSpans[D].span=q,Z){var Q=createNS("g");q.appendChild(Q),this.textSpans[D].childSpan=Q}this.textSpans[D].span=q,this.layerElement.appendChild(q)}q.style.display="inherit"}if(rt.reset(),Y&&(W[D].n&&(K=-J,et+=B.yOffset,et+=tt?1:0,tt=!1),this.applyTextPropertiesToMatrix(B,rt,W[D].line,K,et),K+=W[D].l||0,K+=J),Z){var it;if(1===(U=this.globalData.fontManager.getCharData(B.finalText[D],O.fStyle,this.globalData.fontManager.getFontByName(B.f).fFamily)).t)it=new SVGCompElement(U.data,this.globalData,this);else{var at=emptyShapeData;U.data&&U.data.shapes&&(at=this.buildShapeData(U.data,B.finalSize)),it=new SVGShapeElement(at,this.globalData,this)}if(this.textSpans[D].glyph){var st=this.textSpans[D].glyph;this.textSpans[D].childSpan.removeChild(st.layerElement),st.destroy()}this.textSpans[D].glyph=it,it._debug=!0,it.prepareFrame(0),it.renderFrame(),this.textSpans[D].childSpan.appendChild(it.layerElement),1===U.t&&this.textSpans[D].childSpan.setAttribute("transform","scale("+B.finalSize/100+","+B.finalSize/100+")")}else Y&&q.setAttribute("transform","translate("+rt.props[12]+","+rt.props[13]+")"),q.textContent=W[D].val,q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&q&&q.setAttribute("d","")}else{var ot=this.textContainer,ft="start";switch(B.j){case 1:ft="end";break;case 2:ft="middle";break;default:ft="start"}ot.setAttribute("text-anchor",ft),ot.setAttribute("letter-spacing",J);var pt=this.buildTextContents(B.finalText);for(F=pt.length,et=B.ps?B.ps[1]+B.ascent:0,D=0;D<F;D+=1)(q=this.textSpans[D].span||createNS("tspan")).textContent=pt[D],q.setAttribute("x",0),q.setAttribute("y",et),q.style.display="inherit",ot.appendChild(q),this.textSpans[D]||(this.textSpans[D]={span:null,glyph:null}),this.textSpans[D].span=q,et+=B.finalLineHeight;this.layerElement.appendChild(ot)}for(;D<this.textSpans.length;)this.textSpans[D].span.style.display="none",D+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var D=this.layerElement.getBBox();this.bbox={top:D.y,left:D.x,width:D.width,height:D.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var D,F,B=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,D=0;D<B;D+=1)(F=this.textSpans[D].glyph)&&(F.prepareFrame(this.comp.renderedFrame-this.data.st),F._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var D,F;this._sizeChanged=!0;var B,O,G,j=this.textAnimator.renderedLetters,q=this.textProperty.currentData.l;for(F=q.length,D=0;D<F;D+=1)q[D].n||(B=j[D],O=this.textSpans[D].span,(G=this.textSpans[D].glyph)&&G.renderFrame(),B._mdf.m&&O.setAttribute("transform",B.m),B._mdf.o&&O.setAttribute("opacity",B.o),B._mdf.sw&&O.setAttribute("stroke-width",B.sw),B._mdf.sc&&O.setAttribute("stroke",B.sc),B._mdf.fc&&O.setAttribute("fill",B.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var D=createNS("rect");D.setAttribute("width",this.data.sw),D.setAttribute("height",this.data.sh),D.setAttribute("fill",this.data.sc),this.layerElement.appendChild(D)},NullElement.prototype.prepareFrame=function(D){this.prepareProperties(D,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(D){return new NullElement(D,this.globalData,this)},SVGRendererBase.prototype.createShape=function(D){return new SVGShapeElement(D,this.globalData,this)},SVGRendererBase.prototype.createText=function(D){return new SVGTextLottieElement(D,this.globalData,this)},SVGRendererBase.prototype.createImage=function(D){return new IImageElement(D,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(D){return new ISolidElement(D,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(D){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+D.w+" "+D.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",D.w),this.svgElement.setAttribute("height",D.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var F=this.globalData.defs;this.setupGlobalData(D,F),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=D;var B=createNS("clipPath"),O=createNS("rect");O.setAttribute("width",D.w),O.setAttribute("height",D.h),O.setAttribute("x",0),O.setAttribute("y",0);var G=createElementID();B.setAttribute("id",G),B.appendChild(O),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+G+")"),F.appendChild(B),this.layers=D.layers,this.elements=createSizedArray(D.layers.length)},SVGRendererBase.prototype.destroy=function(){var D;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var F=this.layers?this.layers.length:0;for(D=0;D<F;D+=1)this.elements[D]&&this.elements[D].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(D){var F=0,B=this.layers.length;for(F=0;F<B;F+=1)if(this.layers[F].ind===D)return F;return-1},SVGRendererBase.prototype.buildItem=function(D){var F=this.elements;if(!F[D]&&99!==this.layers[D].ty){F[D]=!0;var B=this.createItem(this.layers[D]);if(F[D]=B,getExpressionsPlugin()&&(0===this.layers[D].ty&&this.globalData.projectInterface.registerComposition(B),B.initExpressions()),this.appendElementInPos(B,D),this.layers[D].tt){var O="tp"in this.layers[D]?this.findIndexByInd(this.layers[D].tp):D-1;if(-1===O)return;if(this.elements[O]&&!0!==this.elements[O]){var G=F[O].getMatte(this.layers[D].tt);B.setMatte(G)}else this.buildItem(O),this.addPendingElement(B)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var D=this.pendingElements.pop();if(D.checkParenting(),D.data.tt)for(var F=0,B=this.elements.length;F<B;){if(this.elements[F]===D){var O="tp"in D.data?this.findIndexByInd(D.data.tp):F-1,G=this.elements[O].getMatte(this.layers[F].tt);D.setMatte(G);break}F+=1}}},SVGRendererBase.prototype.renderFrame=function(D){if(this.renderedFrame!==D&&!this.destroyed){var F;null===D?D=this.renderedFrame:this.renderedFrame=D,this.globalData.frameNum=D,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=D,this.globalData._mdf=!1;var B=this.layers.length;for(this.completeLayers||this.checkLayers(D),F=B-1;F>=0;F-=1)(this.completeLayers||this.elements[F])&&this.elements[F].prepareFrame(D-this.layers[F].st);if(this.globalData._mdf)for(F=0;F<B;F+=1)(this.completeLayers||this.elements[F])&&this.elements[F].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(D,F){var B=D.getBaseElement();if(B){for(var O,G=0;G<F;)this.elements[G]&&!0!==this.elements[G]&&this.elements[G].getBaseElement()&&(O=this.elements[G].getBaseElement()),G+=1;O?this.layerElement.insertBefore(B,O):this.layerElement.appendChild(B)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(D,F,B){this.initFrame(),this.initBaseData(D,F,B),this.initTransform(D,F,B),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&F.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(D){if(this._mdf=!1,this.prepareRenderableFrame(D),this.prepareProperties(D,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=D/this.data.sr;else{var F=this.tm.v;F===this.data.op&&(F=this.data.op-1),this.renderedFrame=F}var B,O=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),B=O-1;B>=0;B-=1)(this.completeLayers||this.elements[B])&&(this.elements[B].prepareFrame(this.renderedFrame-this.layers[B].st),this.elements[B]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var D,F=this.layers.length;for(D=0;D<F;D+=1)(this.completeLayers||this.elements[D])&&this.elements[D].renderFrame()},ICompElement.prototype.setElements=function(D){this.elements=D},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var D,F=this.layers.length;for(D=0;D<F;D+=1)this.elements[D]&&this.elements[D].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(D){return new SVGCompElement(D,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(D){return new SVGCompElement(D,this.globalData,this)},CVContextData.prototype.duplicate=function(){var D=2*this._length,F=this.savedOp;this.savedOp=createTypedArray("float32",D),this.savedOp.set(F);var B=0;for(B=this._length;B<D;B+=1)this.saved[B]=createTypedArray("float32",16);this._length=D},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(D){var F,B=D.length,O="_";for(F=0;F<B;F+=1)O+=D[F].transform.key+"_";var G=this.sequences[O];return G||(G={transforms:[].concat(D),finalTransform:new Matrix,_mdf:!1},this.sequences[O]=G,this.sequenceList.push(G)),G},processSequence:function(D,F){for(var B,O=0,G=D.transforms.length,j=F;O<G&&!F;){if(D.transforms[O].transform.mProps._mdf){j=!0;break}O+=1}if(j)for(D.finalTransform.reset(),O=G-1;O>=0;O-=1)D.finalTransform.transform((B=D.transforms[O].transform.mProps.v.props)[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]);D._mdf=j},processSequences:function(D){var F,B=this.sequenceList.length;for(F=0;F<B;F+=1)this.processSequence(this.sequenceList[F],D)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var D,F,B,O,G=this.element.finalTransform.mat,j=this.element.canvasContext,q=this.masksProperties.length;for(j.beginPath(),D=0;D<q;D+=1)if("n"!==this.masksProperties[D].mode){var W;this.masksProperties[D].inv&&(j.moveTo(0,0),j.lineTo(this.element.globalData.compSize.w,0),j.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),j.lineTo(0,this.element.globalData.compSize.h),j.lineTo(0,0)),F=G.applyToPointArray((O=this.viewData[D].v).v[0][0],O.v[0][1],0),j.moveTo(F[0],F[1]);var Z=O._length;for(W=1;W<Z;W+=1)B=G.applyToTriplePoints(O.o[W-1],O.i[W],O.v[W]),j.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5]);B=G.applyToTriplePoints(O.o[W-1],O.i[0],O.v[0]),j.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5])}this.element.globalData.renderer.save(!0),j.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var D=this.globalData;if(D.blendMode!==this.data.bm){D.blendMode=this.data.bm;var F=getBlendMode(this.data.bm);D.canvasContext.globalCompositeOperation=F}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var D=0===this.data.ty;this.globalData.renderer.save(D),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(D),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(D,F){var B={data:D,type:D.ty,preTransforms:this.transformsManager.addTransformSequence(F),transforms:[],elements:[],closed:!0===D.hd},O={};if("fl"===D.ty||"st"===D.ty?(O.c=PropertyFactory.getProp(this,D.c,1,255,this),O.c.k||(B.co="rgb("+bmFloor(O.c.v[0])+","+bmFloor(O.c.v[1])+","+bmFloor(O.c.v[2])+")")):"gf"!==D.ty&&"gs"!==D.ty||(O.s=PropertyFactory.getProp(this,D.s,1,null,this),O.e=PropertyFactory.getProp(this,D.e,1,null,this),O.h=PropertyFactory.getProp(this,D.h||{k:0},0,.01,this),O.a=PropertyFactory.getProp(this,D.a||{k:0},0,degToRads,this),O.g=new GradientProperty(this,D.g,this)),O.o=PropertyFactory.getProp(this,D.o,0,.01,this),"st"===D.ty||"gs"===D.ty){if(B.lc=lineCapEnum[D.lc||2],B.lj=lineJoinEnum[D.lj||2],1==D.lj&&(B.ml=D.ml),O.w=PropertyFactory.getProp(this,D.w,0,null,this),O.w.k||(B.wi=O.w.v),D.d){var G=new DashProperty(this,D.d,"canvas",this);O.d=G,O.d.k||(B.da=O.d.dashArray,B.do=O.d.dashoffset[0])}}else B.r=2===D.r?"evenodd":"nonzero";return this.stylesList.push(B),O.style=B,O},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(D){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,D.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,D,this)}}},CVShapeElement.prototype.createShapeElement=function(D){var F=new CVShapeData(this,D,this.stylesList,this.transformsManager);return this.shapes.push(F),this.addShapeToModifiers(F),F},CVShapeElement.prototype.reloadShapes=function(){var D;this._isFirstFrame=!0;var F=this.itemsData.length;for(D=0;D<F;D+=1)this.prevViewData[D]=this.itemsData[D];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),F=this.dynamicProperties.length,D=0;D<F;D+=1)this.dynamicProperties[D].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(D){var F,B=this.stylesList.length;for(F=0;F<B;F+=1)this.stylesList[F].closed||this.stylesList[F].transforms.push(D)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var D,F=this.stylesList.length;for(D=0;D<F;D+=1)this.stylesList[D].closed||this.stylesList[D].transforms.pop()},CVShapeElement.prototype.closeStyles=function(D){var F,B=D.length;for(F=0;F<B;F+=1)D[F].closed=!0},CVShapeElement.prototype.searchShapes=function(D,F,B,O,G){var j,q,W,Z,rt,Y,K=D.length-1,et=[],tt=[],J=[].concat(G);for(j=K;j>=0;j-=1){if((Z=this.searchProcessedElement(D[j]))?F[j]=B[Z-1]:D[j]._shouldRender=O,"fl"===D[j].ty||"st"===D[j].ty||"gf"===D[j].ty||"gs"===D[j].ty)Z?F[j].style.closed=!1:F[j]=this.createStyleElement(D[j],J),et.push(F[j].style);else if("gr"===D[j].ty){if(Z)for(W=F[j].it.length,q=0;q<W;q+=1)F[j].prevViewData[q]=F[j].it[q];else F[j]=this.createGroupElement(D[j]);this.searchShapes(D[j].it,F[j].it,F[j].prevViewData,O,J)}else"tr"===D[j].ty?(Z||(Y=this.createTransformElement(D[j]),F[j]=Y),J.push(F[j]),this.addTransformToStyleList(F[j])):"sh"===D[j].ty||"rc"===D[j].ty||"el"===D[j].ty||"sr"===D[j].ty?Z||(F[j]=this.createShapeElement(D[j])):"tm"===D[j].ty||"rd"===D[j].ty||"pb"===D[j].ty||"zz"===D[j].ty||"op"===D[j].ty?(Z?(rt=F[j]).closed=!1:((rt=ShapeModifiers.getModifier(D[j].ty)).init(this,D[j]),F[j]=rt,this.shapeModifiers.push(rt)),tt.push(rt)):"rp"===D[j].ty&&(Z?(rt=F[j]).closed=!0:(rt=ShapeModifiers.getModifier(D[j].ty),F[j]=rt,rt.init(this,D,j,F),this.shapeModifiers.push(rt),O=!1),tt.push(rt));this.addProcessedElement(D[j],j+1)}for(this.removeTransformFromStyleList(),this.closeStyles(et),K=tt.length,j=0;j<K;j+=1)tt[j].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(D,F){(D._opMdf||F.op._mdf||this._isFirstFrame)&&(F.opacity=D.opacity,F.opacity*=F.op.v,F._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var D,F,B,O,G,j,q,W,Z,rt=this.stylesList.length,Y=this.globalData.renderer,K=this.globalData.canvasContext;for(D=0;D<rt;D+=1)if(("st"!==(W=(Z=this.stylesList[D]).type)&&"gs"!==W||0!==Z.wi)&&Z.data._shouldRender&&0!==Z.coOp&&0!==this.globalData.currentGlobalAlpha){for(Y.save(),j=Z.elements,"st"===W||"gs"===W?(K.strokeStyle="st"===W?Z.co:Z.grd,K.lineWidth=Z.wi,K.lineCap=Z.lc,K.lineJoin=Z.lj,K.miterLimit=Z.ml||0):K.fillStyle="fl"===W?Z.co:Z.grd,Y.ctxOpacity(Z.coOp),"st"!==W&&"gs"!==W&&K.beginPath(),Y.ctxTransform(Z.preTransforms.finalTransform.props),B=j.length,F=0;F<B;F+=1){for("st"!==W&&"gs"!==W||(K.beginPath(),Z.da&&(K.setLineDash(Z.da),K.lineDashOffset=Z.do)),G=(q=j[F].trNodes).length,O=0;O<G;O+=1)"m"===q[O].t?K.moveTo(q[O].p[0],q[O].p[1]):"c"===q[O].t?K.bezierCurveTo(q[O].pts[0],q[O].pts[1],q[O].pts[2],q[O].pts[3],q[O].pts[4],q[O].pts[5]):K.closePath();"st"!==W&&"gs"!==W||(K.stroke(),Z.da&&K.setLineDash(this.dashResetter))}"st"!==W&&"gs"!==W&&K.fill(Z.r),Y.restore()}},CVShapeElement.prototype.renderShape=function(D,F,B,O){var G,j;for(j=D,G=F.length-1;G>=0;G-=1)"tr"===F[G].ty?this.renderShapeTransform(D,j=B[G].transform):"sh"===F[G].ty||"el"===F[G].ty||"rc"===F[G].ty||"sr"===F[G].ty?this.renderPath(F[G],B[G]):"fl"===F[G].ty?this.renderFill(F[G],B[G],j):"st"===F[G].ty?this.renderStroke(F[G],B[G],j):"gf"===F[G].ty||"gs"===F[G].ty?this.renderGradientFill(F[G],B[G],j):"gr"===F[G].ty&&this.renderShape(j,F[G].it,B[G].it);O&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(D,F){if(this._isFirstFrame||F._mdf||D.transforms._mdf){var B,O,G,j=D.trNodes,q=F.paths,W=q._length;j.length=0;var Z=D.transforms.finalTransform;for(G=0;G<W;G+=1){var rt=q.shapes[G];if(rt&&rt.v){for(O=rt._length,B=1;B<O;B+=1)1===B&&j.push({t:"m",p:Z.applyToPointArray(rt.v[0][0],rt.v[0][1],0)}),j.push({t:"c",pts:Z.applyToTriplePoints(rt.o[B-1],rt.i[B],rt.v[B])});1===O&&j.push({t:"m",p:Z.applyToPointArray(rt.v[0][0],rt.v[0][1],0)}),rt.c&&O&&(j.push({t:"c",pts:Z.applyToTriplePoints(rt.o[B-1],rt.i[0],rt.v[0])}),j.push({t:"z"}))}}D.trNodes=j}},CVShapeElement.prototype.renderPath=function(D,F){if(!0!==D.hd&&D._shouldRender){var B,O=F.styledShapes.length;for(B=0;B<O;B+=1)this.renderStyledShape(F.styledShapes[B],F.sh)}},CVShapeElement.prototype.renderFill=function(D,F,B){var O=F.style;(F.c._mdf||this._isFirstFrame)&&(O.co="rgb("+bmFloor(F.c.v[0])+","+bmFloor(F.c.v[1])+","+bmFloor(F.c.v[2])+")"),(F.o._mdf||B._opMdf||this._isFirstFrame)&&(O.coOp=F.o.v*B.opacity)},CVShapeElement.prototype.renderGradientFill=function(D,F,B){var O,G=F.style;if(!G.grd||F.g._mdf||F.s._mdf||F.e._mdf||1!==D.t&&(F.h._mdf||F.a._mdf)){var j,q=this.globalData.canvasContext,W=F.s.v,Z=F.e.v;if(1===D.t)O=q.createLinearGradient(W[0],W[1],Z[0],Z[1]);else{var rt=Math.sqrt(Math.pow(W[0]-Z[0],2)+Math.pow(W[1]-Z[1],2)),Y=Math.atan2(Z[1]-W[1],Z[0]-W[0]),K=F.h.v;K>=1?K=.99:K<=-1&&(K=-.99);var et=rt*K,tt=Math.cos(Y+F.a.v)*et+W[0],J=Math.sin(Y+F.a.v)*et+W[1];O=q.createRadialGradient(tt,J,0,W[0],W[1],rt)}var U=D.g.p,X=F.g.c,Q=1;for(j=0;j<U;j+=1)F.g._hasOpacity&&F.g._collapsable&&(Q=F.g.o[2*j+1]),O.addColorStop(X[4*j]/100,"rgba("+X[4*j+1]+","+X[4*j+2]+","+X[4*j+3]+","+Q+")");G.grd=O}G.coOp=F.o.v*B.opacity},CVShapeElement.prototype.renderStroke=function(D,F,B){var O=F.style,G=F.d;G&&(G._mdf||this._isFirstFrame)&&(O.da=G.dashArray,O.do=G.dashoffset[0]),(F.c._mdf||this._isFirstFrame)&&(O.co="rgb("+bmFloor(F.c.v[0])+","+bmFloor(F.c.v[1])+","+bmFloor(F.c.v[2])+")"),(F.o._mdf||B._opMdf||this._isFirstFrame)&&(O.coOp=F.o.v*B.opacity),(F.w._mdf||this._isFirstFrame)&&(O.wi=F.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var D=this.textProperty.currentData;this.renderedLetters=createSizedArray(D.l?D.l.length:0);var F=!1;D.fc?(F=!0,this.values.fill=this.buildColor(D.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=F;var B=!1;D.sc&&(B=!0,this.values.stroke=this.buildColor(D.sc),this.values.sWidth=D.sw);var O,G,j,q,W,Z,rt,Y,K,et,tt,J,U=this.globalData.fontManager.getFontByName(D.f),X=D.l,Q=this.mHelper;this.stroke=B,this.values.fValue=D.finalSize+"px "+this.globalData.fontManager.getFontByName(D.f).fFamily,G=D.finalText.length;var it=this.data.singleShape,at=.001*D.tr*D.finalSize,st=0,ot=0,ft=!0,pt=0;for(O=0;O<G;O+=1){q=(j=this.globalData.fontManager.getCharData(D.finalText[O],U.fStyle,this.globalData.fontManager.getFontByName(D.f).fFamily))&&j.data||{},Q.reset(),it&&X[O].n&&(st=-at,ot+=D.yOffset,ot+=ft?1:0,ft=!1),K=(rt=q.shapes?q.shapes[0].it:[]).length,Q.scale(D.finalSize/100,D.finalSize/100),it&&this.applyTextPropertiesToMatrix(D,Q,X[O].line,st,ot),tt=createSizedArray(K-1);var lt=0;for(Y=0;Y<K;Y+=1)if("sh"===rt[Y].ty){for(Z=rt[Y].ks.k.i.length,et=rt[Y].ks.k,J=[],W=1;W<Z;W+=1)1===W&&J.push(Q.applyToX(et.v[0][0],et.v[0][1],0),Q.applyToY(et.v[0][0],et.v[0][1],0)),J.push(Q.applyToX(et.o[W-1][0],et.o[W-1][1],0),Q.applyToY(et.o[W-1][0],et.o[W-1][1],0),Q.applyToX(et.i[W][0],et.i[W][1],0),Q.applyToY(et.i[W][0],et.i[W][1],0),Q.applyToX(et.v[W][0],et.v[W][1],0),Q.applyToY(et.v[W][0],et.v[W][1],0));J.push(Q.applyToX(et.o[W-1][0],et.o[W-1][1],0),Q.applyToY(et.o[W-1][0],et.o[W-1][1],0),Q.applyToX(et.i[0][0],et.i[0][1],0),Q.applyToY(et.i[0][0],et.i[0][1],0),Q.applyToX(et.v[0][0],et.v[0][1],0),Q.applyToY(et.v[0][0],et.v[0][1],0)),tt[lt]=J,lt+=1}it&&(st+=X[O].l,st+=at),this.textSpans[pt]?this.textSpans[pt].elem=tt:this.textSpans[pt]={elem:tt},pt+=1}},CVTextElement.prototype.renderInnerContent=function(){var D,F,B,O,G,j,q=this.canvasContext;q.font=this.values.fValue,q.lineCap="butt",q.lineJoin="miter",q.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var W,Z=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;F=rt.length;var Y,K,et=null,tt=null,J=null;for(D=0;D<F;D+=1)if(!rt[D].n){if((W=Z[D])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(W.p),this.globalData.renderer.ctxOpacity(W.o)),this.fill){for(W&&W.fc?et!==W.fc&&(et=W.fc,q.fillStyle=W.fc):et!==this.values.fill&&(et=this.values.fill,q.fillStyle=this.values.fill),O=(Y=this.textSpans[D].elem).length,this.globalData.canvasContext.beginPath(),B=0;B<O;B+=1)for(j=(K=Y[B]).length,this.globalData.canvasContext.moveTo(K[0],K[1]),G=2;G<j;G+=6)this.globalData.canvasContext.bezierCurveTo(K[G],K[G+1],K[G+2],K[G+3],K[G+4],K[G+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(W&&W.sw?J!==W.sw&&(J=W.sw,q.lineWidth=W.sw):J!==this.values.sWidth&&(J=this.values.sWidth,q.lineWidth=this.values.sWidth),W&&W.sc?tt!==W.sc&&(tt=W.sc,q.strokeStyle=W.sc):tt!==this.values.stroke&&(tt=this.values.stroke,q.strokeStyle=this.values.stroke),O=(Y=this.textSpans[D].elem).length,this.globalData.canvasContext.beginPath(),B=0;B<O;B+=1)for(j=(K=Y[B]).length,this.globalData.canvasContext.moveTo(K[0],K[1]),G=2;G<j;G+=6)this.globalData.canvasContext.bezierCurveTo(K[G],K[G+1],K[G+2],K[G+3],K[G+4],K[G+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}W&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var D=createTag("canvas");D.width=this.assetData.w,D.height=this.assetData.h;var F,B,O=D.getContext("2d"),G=this.img.width,j=this.img.height,q=G/j,W=this.assetData.w/this.assetData.h,Z=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;q>W&&"xMidYMid slice"===Z||q<W&&"xMidYMid slice"!==Z?F=(B=j)*W:B=(F=G)/W,O.drawImage(this.img,(G-F)/2,(j-B)/2,F,B,0,0,this.assetData.w,this.assetData.h),this.img=D}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var D=this.canvasContext;D.fillStyle=this.data.sc,D.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(D){return new CVShapeElement(D,this.globalData,this)},CanvasRendererBase.prototype.createText=function(D){return new CVTextElement(D,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(D){return new CVImageElement(D,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(D){return new CVSolidElement(D,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(D){if(1!==D[0]||0!==D[1]||0!==D[4]||1!==D[5]||0!==D[12]||0!==D[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(D);var F=this.contextData.cTr.props;this.transformMat.transform(F[0],F[1],F[2],F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11],F[12],F[13],F[14],F[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var B=this.contextData.cTr.props;this.canvasContext.setTransform(B[0],B[1],B[4],B[5],B[12],B[13])}else this.canvasContext.transform(D[0],D[1],D[4],D[5],D[12],D[13])},CanvasRendererBase.prototype.ctxOpacity=function(D){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=D<0?0:D,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=D<0?0:D,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(D){if(this.renderConfig.clearCanvas){D&&this.canvasContext.save();var F,B=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var O=this.contextData.saved[this.contextData.cArrPos];for(F=0;F<16;F+=1)O[F]=B[F];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(D){if(this.renderConfig.clearCanvas){D&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var F,B=this.contextData.saved[this.contextData.cArrPos],O=this.contextData.cTr.props;for(F=0;F<16;F+=1)O[F]=B[F];this.canvasContext.setTransform(B[0],B[1],B[4],B[5],B[12],B[13]),this.contextData.cO=B=this.contextData.savedOp[this.contextData.cArrPos],this.globalData.currentGlobalAlpha!==B&&(this.canvasContext.globalAlpha=B,this.globalData.currentGlobalAlpha=B)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(D){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var F=this.animationItem.container.style;F.width="100%",F.height="100%";var B="0px 0px 0px";F.transformOrigin=B,F.mozTransformOrigin=B,F.webkitTransformOrigin=B,F["-webkit-transform"]=B,F.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=D,this.layers=D.layers,this.transformCanvas={w:D.w,h:D.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(D,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(D.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(D,F){var B,O,G,j;if(this.reset(),D?(O=F,this.canvasContext.canvas.width=B=D,this.canvasContext.canvas.height=O):(this.animationItem.wrapper&&this.animationItem.container?(B=this.animationItem.wrapper.offsetWidth,O=this.animationItem.wrapper.offsetHeight):(B=this.canvasContext.canvas.width,O=this.canvasContext.canvas.height),this.canvasContext.canvas.width=B*this.renderConfig.dpr,this.canvasContext.canvas.height=O*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var q=this.renderConfig.preserveAspectRatio.split(" "),W=q[1]||"meet",Z=q[0]||"xMidYMid",rt=Z.substr(0,4),Y=Z.substr(4);(j=this.transformCanvas.w/this.transformCanvas.h)>(G=B/O)&&"meet"===W||j<G&&"slice"===W?(this.transformCanvas.sx=B/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=B/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=O/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=O/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===rt&&(j<G&&"meet"===W||j>G&&"slice"===W)?(B-this.transformCanvas.w*(O/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===rt&&(j<G&&"meet"===W||j>G&&"slice"===W)?(B-this.transformCanvas.w*(O/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===Y&&(j>G&&"meet"===W||j<G&&"slice"===W)?(O-this.transformCanvas.h*(B/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===Y&&(j>G&&"meet"===W||j<G&&"slice"===W)?(O-this.transformCanvas.h*(B/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=B/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=O/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var D;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),D=(this.layers?this.layers.length:0)-1;D>=0;D-=1)this.elements[D]&&this.elements[D].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(D,F){if((this.renderedFrame!==D||!0!==this.renderConfig.clearCanvas||F)&&!this.destroyed&&-1!==D){var B;this.renderedFrame=D,this.globalData.frameNum=D-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||F,this.globalData.projectInterface.currentFrame=D;var O=this.layers.length;for(this.completeLayers||this.checkLayers(D),B=0;B<O;B+=1)(this.completeLayers||this.elements[B])&&this.elements[B].prepareFrame(D-this.layers[B].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),B=O-1;B>=0;B-=1)(this.completeLayers||this.elements[B])&&this.elements[B].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(D){var F=this.elements;if(!F[D]&&99!==this.layers[D].ty){var B=this.createItem(this.layers[D],this,this.globalData);F[D]=B,B.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var D,F=this.canvasContext;for(F.beginPath(),F.moveTo(0,0),F.lineTo(this.data.w,0),F.lineTo(this.data.w,this.data.h),F.lineTo(0,this.data.h),F.lineTo(0,0),F.clip(),D=this.layers.length-1;D>=0;D-=1)(this.completeLayers||this.elements[D])&&this.elements[D].renderFrame()},CVCompElement.prototype.destroy=function(){var D;for(D=this.layers.length-1;D>=0;D-=1)this.elements[D]&&this.elements[D].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(D){return new CVCompElement(D,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(D){return new CVCompElement(D,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var D=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var F=this.finalTransform.mat.toCSS();D.transform=F,D.webkitTransform=F}this.finalTransform._opMdf&&(D.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var D;this.data.hasMask?((D=createNS("rect")).setAttribute("width",this.data.sw),D.setAttribute("height",this.data.sh),D.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((D=createTag("div")).style.width=this.data.sw+"px",D.style.height=this.data.sh+"px",D.style.backgroundColor=this.data.sc),this.layerElement.appendChild(D)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var D;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),D=this.svgElement;else{D=createNS("svg");var F=this.comp.data?this.comp.data:this.globalData.compSize;D.setAttribute("width",F.w),D.setAttribute("height",F.h),D.appendChild(this.shapesContainer),this.layerElement.appendChild(D)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=D},HShapeElement.prototype.getTransformedPoint=function(D,F){var B,O=D.length;for(B=0;B<O;B+=1)F=D[B].mProps.v.applyToPointArray(F[0],F[1],0);return F},HShapeElement.prototype.calculateShapeBoundingBox=function(D,F){var B,O,G,j,q,W=D.sh.v,Z=D.transformers,rt=W._length;if(!(rt<=1)){for(B=0;B<rt-1;B+=1)O=this.getTransformedPoint(Z,W.v[B]),G=this.getTransformedPoint(Z,W.o[B]),j=this.getTransformedPoint(Z,W.i[B+1]),q=this.getTransformedPoint(Z,W.v[B+1]),this.checkBounds(O,G,j,q,F);W.c&&(O=this.getTransformedPoint(Z,W.v[B]),G=this.getTransformedPoint(Z,W.o[B]),j=this.getTransformedPoint(Z,W.i[0]),q=this.getTransformedPoint(Z,W.v[0]),this.checkBounds(O,G,j,q,F))}},HShapeElement.prototype.checkBounds=function(D,F,B,O,G){this.getBoundsOfCurve(D,F,B,O);var j=this.shapeBoundingBox;G.x=bmMin(j.left,G.x),G.xMax=bmMax(j.right,G.xMax),G.y=bmMin(j.top,G.y),G.yMax=bmMax(j.bottom,G.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(D,F,B,O){for(var G,j,q,W,Z,rt,Y,K=[[D[0],O[0]],[D[1],O[1]]],et=0;et<2;++et)j=6*D[et]-12*F[et]+6*B[et],G=-3*D[et]+9*F[et]-9*B[et]+3*O[et],q=3*F[et]-3*D[et],j|=0,q|=0,0==(G|=0)&&0===j||(0===G?(W=-q/j)>0&&W<1&&K[et].push(this.calculateF(W,D,F,B,O,et)):(Z=j*j-4*q*G)>=0&&((rt=(-j+bmSqrt(Z))/(2*G))>0&&rt<1&&K[et].push(this.calculateF(rt,D,F,B,O,et)),(Y=(-j-bmSqrt(Z))/(2*G))>0&&Y<1&&K[et].push(this.calculateF(Y,D,F,B,O,et))));this.shapeBoundingBox.left=bmMin.apply(null,K[0]),this.shapeBoundingBox.top=bmMin.apply(null,K[1]),this.shapeBoundingBox.right=bmMax.apply(null,K[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,K[1])},HShapeElement.prototype.calculateF=function(D,F,B,O,G,j){return bmPow(1-D,3)*F[j]+3*bmPow(1-D,2)*D*B[j]+3*(1-D)*bmPow(D,2)*O[j]+bmPow(D,3)*G[j]},HShapeElement.prototype.calculateBoundingBox=function(D,F){var B,O=D.length;for(B=0;B<O;B+=1)D[B]&&D[B].sh?this.calculateShapeBoundingBox(D[B],F):D[B]&&D[B].it?this.calculateBoundingBox(D[B].it,F):D[B]&&D[B].style&&D[B].w&&this.expandStrokeBoundingBox(D[B].w,F)},HShapeElement.prototype.expandStrokeBoundingBox=function(D,F){var B=0;if(D.keyframes){for(var O=0;O<D.keyframes.length;O+=1){var G=D.keyframes[O].s;G>B&&(B=G)}B*=D.mult}else B=D.v*D.mult;F.x-=B,F.xMax+=B,F.y-=B,F.yMax+=B},HShapeElement.prototype.currentBoxContains=function(D){return this.currentBBox.x<=D.x&&this.currentBBox.y<=D.y&&this.currentBBox.width+this.currentBBox.x>=D.x+D.width&&this.currentBBox.height+this.currentBBox.y>=D.y+D.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var D=this.tempBoundingBox,F=999999;if(D.x=F,D.xMax=-F,D.y=F,D.yMax=-F,this.calculateBoundingBox(this.itemsData,D),D.width=D.xMax<D.x?0:D.xMax-D.x,D.height=D.yMax<D.y?0:D.yMax-D.y,this.currentBoxContains(D))return;var B=!1;if(this.currentBBox.w!==D.width&&(this.currentBBox.w=D.width,this.shapeCont.setAttribute("width",D.width),B=!0),this.currentBBox.h!==D.height&&(this.currentBBox.h=D.height,this.shapeCont.setAttribute("height",D.height),B=!0),B||this.currentBBox.x!==D.x||this.currentBBox.y!==D.y){this.currentBBox.w=D.width,this.currentBBox.h=D.height,this.currentBBox.x=D.x,this.currentBBox.y=D.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var O=this.shapeCont.style,G="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";O.transform=G,O.webkitTransform=G}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var D=createNS("g");this.maskedElement.appendChild(D),this.innerElem=D}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var D=this.textProperty.currentData;this.renderedLetters=createSizedArray(D.l?D.l.length:0);var F=this.innerElem.style,B=D.fc?this.buildColor(D.fc):"rgba(0,0,0,0)";F.fill=B,F.color=B,D.sc&&(F.stroke=this.buildColor(D.sc),F.strokeWidth=D.sw+"px");var O,G,j=this.globalData.fontManager.getFontByName(D.f);if(!this.globalData.fontManager.chars)if(F.fontSize=D.finalSize+"px",F.lineHeight=D.finalSize+"px",j.fClass)this.innerElem.className=j.fClass;else{F.fontFamily=j.fFamily;var q=D.fWeight;F.fontStyle=D.fStyle,F.fontWeight=q}var Z,rt,Y,K=D.l;G=K.length;var et,tt=this.mHelper,J="",U=0;for(O=0;O<G;O+=1){if(this.globalData.fontManager.chars?(this.textPaths[U]?Z=this.textPaths[U]:((Z=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),Z.setAttribute("stroke-linejoin",lineJoinEnum[2]),Z.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[U]?Y=(rt=this.textSpans[U]).children[0]:((rt=createTag("div")).style.lineHeight=0,(Y=createNS("svg")).appendChild(Z),styleDiv(rt)))):this.isMasked?Z=this.textPaths[U]?this.textPaths[U]:createNS("text"):this.textSpans[U]?(rt=this.textSpans[U],Z=this.textPaths[U]):(styleDiv(rt=createTag("span")),styleDiv(Z=createTag("span")),rt.appendChild(Z)),this.globalData.fontManager.chars){var X,Q=this.globalData.fontManager.getCharData(D.finalText[O],j.fStyle,this.globalData.fontManager.getFontByName(D.f).fFamily);if(X=Q?Q.data:null,tt.reset(),X&&X.shapes&&X.shapes.length&&(et=X.shapes[0].it,tt.scale(D.finalSize/100,D.finalSize/100),J=this.createPathShape(tt,et),Z.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(Z);else{if(this.innerElem.appendChild(rt),X&&X.shapes){document.body.appendChild(Y);var it=Y.getBBox();Y.setAttribute("width",it.width+2),Y.setAttribute("height",it.height+2),Y.setAttribute("viewBox",it.x-1+" "+(it.y-1)+" "+(it.width+2)+" "+(it.height+2));var at=Y.style,st="translate("+(it.x-1)+"px,"+(it.y-1)+"px)";at.transform=st,at.webkitTransform=st,K[O].yOffset=it.y-1}else Y.setAttribute("width",1),Y.setAttribute("height",1);rt.appendChild(Y)}}else if(Z.textContent=K[O].val,Z.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(Z);else{this.innerElem.appendChild(rt);var ot=Z.style,ft="translate3d(0,"+-D.finalSize/1.2+"px,0)";ot.transform=ft,ot.webkitTransform=ft}this.textSpans[U]=this.isMasked?Z:rt,this.textSpans[U].style.display="block",this.textPaths[U]=Z,U+=1}for(;U<this.textSpans.length;)this.textSpans[U].style.display="none",U+=1},HTextElement.prototype.renderInnerContent=function(){var D;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);var F="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";(D=this.svgElement.style).transform=F,D.webkitTransform=F}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var B,O,G,j,q,W=0,Z=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;for(O=rt.length,B=0;B<O;B+=1)rt[B].n?W+=1:(j=this.textSpans[B],q=this.textPaths[B],G=Z[W],W+=1,G._mdf.m&&(this.isMasked?j.setAttribute("transform",G.m):(j.style.webkitTransform=G.m,j.style.transform=G.m)),j.style.opacity=G.o,G.sw&&G._mdf.sw&&q.setAttribute("stroke-width",G.sw),G.sc&&G._mdf.sc&&q.setAttribute("stroke",G.sc),G.fc&&G._mdf.fc&&(q.setAttribute("fill",G.fc),q.style.color=G.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var Y=this.innerElem.getBBox();if(this.currentBBox.w!==Y.width&&(this.currentBBox.w=Y.width,this.svgElement.setAttribute("width",Y.width)),this.currentBBox.h!==Y.height&&(this.currentBBox.h=Y.height,this.svgElement.setAttribute("height",Y.height)),this.currentBBox.w!==Y.width+2||this.currentBBox.h!==Y.height+2||this.currentBBox.x!==Y.x-1||this.currentBBox.y!==Y.y-1){this.currentBBox.w=Y.width+2,this.currentBBox.h=Y.height+2,this.currentBBox.x=Y.x-1,this.currentBBox.y=Y.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var K="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";(D=this.svgElement.style).transform=K,D.webkitTransform=K}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var D,F,B,O,G=this.comp.threeDElements.length;for(D=0;D<G;D+=1)if("3d"===(F=this.comp.threeDElements[D]).type){O=F.container.style;var j=this.pe.v+"px",q="0px 0px 0px",W="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(B=F.perspectiveElem.style).perspective=j,B.webkitPerspective=j,O.transformOrigin=q,O.mozTransformOrigin=q,O.webkitTransformOrigin=q,B.transform=W,B.webkitTransform=W}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var D,F,B=this._isFirstFrame;if(this.hierarchy)for(F=this.hierarchy.length,D=0;D<F;D+=1)B=this.hierarchy[D].finalTransform.mProp._mdf||B;if(B||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(D=F=this.hierarchy.length-1;D>=0;D-=1){var O=this.hierarchy[D].finalTransform.mProp;this.mat.translate(-O.p.v[0],-O.p.v[1],O.p.v[2]),this.mat.rotateX(-O.or.v[0]).rotateY(-O.or.v[1]).rotateZ(O.or.v[2]),this.mat.rotateX(-O.rx.v).rotateY(-O.ry.v).rotateZ(O.rz.v),this.mat.scale(1/O.s.v[0],1/O.s.v[1],1/O.s.v[2]),this.mat.translate(O.a.v[0],O.a.v[1],O.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var G;G=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var j=Math.sqrt(Math.pow(G[0],2)+Math.pow(G[1],2)+Math.pow(G[2],2)),q=[G[0]/j,G[1]/j,G[2]/j],W=Math.sqrt(q[2]*q[2]+q[0]*q[0]),Z=Math.atan2(q[1],W),rt=Math.atan2(q[0],-q[2]);this.mat.rotateY(rt).rotateX(-Z)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var Y=!this._prevMat.equals(this.mat);if((Y||this.pe._mdf)&&this.comp.threeDElements){var K,et,tt;for(F=this.comp.threeDElements.length,D=0;D<F;D+=1)if("3d"===(K=this.comp.threeDElements[D]).type){if(Y){var J=this.mat.toCSS();(tt=K.container.style).transform=J,tt.webkitTransform=J}this.pe._mdf&&((et=K.perspectiveElem.style).perspective=this.pe.v+"px",et.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(D){this.prepareProperties(D,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var D=this.globalData.getAssetsPath(this.assetData),F=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",D),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(F),F.crossOrigin="anonymous",F.src=D,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(D,F){var B=D.getBaseElement();if(B){var O=this.layers[F];if(O.ddd&&this.supports3d)this.addTo3dContainer(B,F);else if(this.threeDElements)this.addTo3dContainer(B,F);else{for(var G,j,q=0;q<F;)this.elements[q]&&!0!==this.elements[q]&&this.elements[q].getBaseElement&&(j=this.elements[q],G=(this.layers[q].ddd?this.getThreeDContainerByPos(q):j.getBaseElement())||G),q+=1;G?O.ddd&&this.supports3d||this.layerElement.insertBefore(B,G):O.ddd&&this.supports3d||this.layerElement.appendChild(B)}}},HybridRendererBase.prototype.createShape=function(D){return this.supports3d?new HShapeElement(D,this.globalData,this):new SVGShapeElement(D,this.globalData,this)},HybridRendererBase.prototype.createText=function(D){return this.supports3d?new HTextElement(D,this.globalData,this):new SVGTextLottieElement(D,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(D){return this.camera=new HCameraElement(D,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(D){return this.supports3d?new HImageElement(D,this.globalData,this):new IImageElement(D,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(D){return this.supports3d?new HSolidElement(D,this.globalData,this):new ISolidElement(D,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(D){for(var F=0,B=this.threeDElements.length;F<B;){if(this.threeDElements[F].startPos<=D&&this.threeDElements[F].endPos>=D)return this.threeDElements[F].perspectiveElem;F+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(D,F){var B,O,G=createTag("div");styleDiv(G);var j=createTag("div");if(styleDiv(j),"3d"===F){(B=G.style).width=this.globalData.compSize.w+"px",B.height=this.globalData.compSize.h+"px";var q="50% 50%";B.webkitTransformOrigin=q,B.mozTransformOrigin=q,B.transformOrigin=q;var W="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(O=j.style).transform=W,O.webkitTransform=W}G.appendChild(j);var Z={container:j,perspectiveElem:G,startPos:D,endPos:D,type:F};return this.threeDElements.push(Z),Z},HybridRendererBase.prototype.build3dContainers=function(){var D,F,B=this.layers.length,O="";for(D=0;D<B;D+=1)this.layers[D].ddd&&3!==this.layers[D].ty?("3d"!==O&&(O="3d",F=this.createThreeDContainer(D,"3d")),F.endPos=Math.max(F.endPos,D)):("2d"!==O&&(O="2d",F=this.createThreeDContainer(D,"2d")),F.endPos=Math.max(F.endPos,D));for(D=(B=this.threeDElements.length)-1;D>=0;D-=1)this.resizerElem.appendChild(this.threeDElements[D].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(D,F){for(var B=0,O=this.threeDElements.length;B<O;){if(F<=this.threeDElements[B].endPos){for(var G,j=this.threeDElements[B].startPos;j<F;)this.elements[j]&&this.elements[j].getBaseElement&&(G=this.elements[j].getBaseElement()),j+=1;G?this.threeDElements[B].container.insertBefore(D,G):this.threeDElements[B].container.appendChild(D);break}B+=1}},HybridRendererBase.prototype.configAnimation=function(D){var F=createTag("div"),B=this.animationItem.wrapper,O=F.style;O.width=D.w+"px",O.height=D.h+"px",this.resizerElem=F,styleDiv(F),O.transformStyle="flat",O.mozTransformStyle="flat",O.webkitTransformStyle="flat",this.renderConfig.className&&F.setAttribute("class",this.renderConfig.className),B.appendChild(F),O.overflow="hidden";var G=createNS("svg");G.setAttribute("width","1"),G.setAttribute("height","1"),styleDiv(G),this.resizerElem.appendChild(G);var j=createNS("defs");G.appendChild(j),this.data=D,this.setupGlobalData(D,G),this.globalData.defs=j,this.layers=D.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var D;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var F=this.layers?this.layers.length:0;for(D=0;D<F;D+=1)this.elements[D].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var D,F,B,O,G=this.animationItem.wrapper.offsetWidth,j=this.animationItem.wrapper.offsetHeight;this.globalData.compSize.w/this.globalData.compSize.h>G/j?(D=G/this.globalData.compSize.w,F=G/this.globalData.compSize.w,B=0,O=(j-this.globalData.compSize.h*(G/this.globalData.compSize.w))/2):(D=j/this.globalData.compSize.h,F=j/this.globalData.compSize.h,B=(G-this.globalData.compSize.w*(j/this.globalData.compSize.h))/2,O=0);var W=this.resizerElem.style;W.webkitTransform="matrix3d("+D+",0,0,0,0,"+F+",0,0,0,0,1,0,"+B+","+O+",0,1)",W.transform=W.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var D,F=this.globalData.compSize.w,B=this.globalData.compSize.h,O=this.threeDElements.length;for(D=0;D<O;D+=1){var G=this.threeDElements[D].perspectiveElem.style;G.webkitPerspective=Math.sqrt(Math.pow(F,2)+Math.pow(B,2))+"px",G.perspective=G.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(D){var F,B=D.length,O=createTag("div");for(F=0;F<B;F+=1)if(D[F].xt){var G=this.createComp(D[F],O,this.globalData.comp,null);G.initExpressions(),this.globalData.projectInterface.registerComposition(G)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(D,F){for(var B,O=0;O<F;)this.elements[O]&&this.elements[O].getBaseElement&&(B=this.elements[O].getBaseElement()),O+=1;B?this.layerElement.insertBefore(D,B):this.layerElement.appendChild(D)},HCompElement.prototype.createComp=function(D){return this.supports3d?new HCompElement(D,this.globalData,this):new SVGCompElement(D,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(D){return this.supports3d?new HCompElement(D,this.globalData,this):new SVGCompElement(D,this.globalData,this)};var CompExpressionInterface=function(D){function F(B){for(var O=0,G=D.layers.length;O<G;){if(D.layers[O].nm===B||D.layers[O].ind===B)return D.elements[O].layerInterface;O+=1}return null}return Object.defineProperty(F,"_name",{value:D.data.nm}),F.layer=F,F.pixelAspect=1,F.height=D.data.h||D.globalData.compSize.h,F.width=D.data.w||D.globalData.compSize.w,F.pixelAspect=1,F.frameDuration=1/D.globalData.frameRate,F.displayStartTime=0,F.numLayers=D.layers.length,F},Expressions=function(){var D={initExpressions:function(F){var B=0,O=[];F.renderer.compInterface=CompExpressionInterface(F.renderer),F.renderer.globalData.projectInterface.registerComposition(F.renderer),F.renderer.globalData.pushExpression=function(){B+=1},F.renderer.globalData.popExpression=function(){0==(B-=1)&&function(){var G,j=O.length;for(G=0;G<j;G+=1)O[G].release();O.length=0}()},F.renderer.globalData.registerExpressionProperty=function(G){-1===O.indexOf(G)&&O.push(G)}}};return D}(),MaskManagerInterface=function(){function D(F,B){this._mask=F,this._data=B}return Object.defineProperty(D.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(D.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(F){var B,O=createSizedArray(F.viewData.length),G=F.viewData.length;for(B=0;B<G;B+=1)O[B]=new D(F.viewData[B],F.masksProperties[B]);return function(j){for(B=0;B<G;){if(F.masksProperties[B].nm===j)return O[B];B+=1}return null}}}(),ExpressionPropertyInterface=function(){var D={pv:0,v:0,mult:1},F={pv:[0,0,0],v:[0,0,0],mult:1};function B(G,j,q){Object.defineProperty(G,"velocity",{get:function(){return j.getVelocityAtTime(j.comp.currentFrame)}}),G.numKeys=j.keyframes?j.keyframes.length:0,G.key=function(W){if(!G.numKeys)return 0;var Z;Z="s"in j.keyframes[W-1]?j.keyframes[W-1].s:"e"in j.keyframes[W-2]?j.keyframes[W-2].e:j.keyframes[W-2].s;var rt="unidimensional"===q?new Number(Z):Object.assign({},Z);return rt.time=j.keyframes[W-1].t/j.elem.comp.globalData.frameRate,rt.value="unidimensional"===q?Z[0]:Z,rt},G.valueAtTime=j.getValueAtTime,G.speedAtTime=j.getSpeedAtTime,G.velocityAtTime=j.getVelocityAtTime,G.propertyGroup=j.propertyGroup}function O(){return D}return function(G){return G?"unidimensional"===G.propType?function(j){j&&"pv"in j||(j=D);var q=1/j.mult,W=j.pv*q,Z=new Number(W);return Z.value=W,B(Z,j,"unidimensional"),function(){return j.k&&j.getValue(),Z.value!==(W=j.v*q)&&((Z=new Number(W)).value=W,B(Z,j,"unidimensional")),Z}}(G):function(j){j&&"pv"in j||(j=F);var q=1/j.mult,W=j.data&&j.data.l||j.pv.length,Z=createTypedArray("float32",W),rt=createTypedArray("float32",W);return Z.value=rt,B(Z,j,"multidimensional"),function(){j.k&&j.getValue();for(var Y=0;Y<W;Y+=1)rt[Y]=j.v[Y]*q,Z[Y]=rt[Y];return Z}}(G):O}}(),TransformExpressionInterface=function(D){function F(q){switch(q){case"scale":case"Scale":case"ADBE Scale":case 6:return F.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return F.rotation;case"ADBE Rotate X":return F.xRotation;case"ADBE Rotate Y":return F.yRotation;case"position":case"Position":case"ADBE Position":case 2:return F.position;case"ADBE Position_0":return F.xPosition;case"ADBE Position_1":return F.yPosition;case"ADBE Position_2":return F.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return F.anchorPoint;case"opacity":case"Opacity":case 11:return F.opacity;default:return null}}var B,O,G,j;return Object.defineProperty(F,"rotation",{get:ExpressionPropertyInterface(D.r||D.rz)}),Object.defineProperty(F,"zRotation",{get:ExpressionPropertyInterface(D.rz||D.r)}),Object.defineProperty(F,"xRotation",{get:ExpressionPropertyInterface(D.rx)}),Object.defineProperty(F,"yRotation",{get:ExpressionPropertyInterface(D.ry)}),Object.defineProperty(F,"scale",{get:ExpressionPropertyInterface(D.s)}),D.p?j=ExpressionPropertyInterface(D.p):(B=ExpressionPropertyInterface(D.px),O=ExpressionPropertyInterface(D.py),D.pz&&(G=ExpressionPropertyInterface(D.pz))),Object.defineProperty(F,"position",{get:function(){return D.p?j():[B(),O(),G?G():0]}}),Object.defineProperty(F,"xPosition",{get:ExpressionPropertyInterface(D.px)}),Object.defineProperty(F,"yPosition",{get:ExpressionPropertyInterface(D.py)}),Object.defineProperty(F,"zPosition",{get:ExpressionPropertyInterface(D.pz)}),Object.defineProperty(F,"anchorPoint",{get:ExpressionPropertyInterface(D.a)}),Object.defineProperty(F,"opacity",{get:ExpressionPropertyInterface(D.o)}),Object.defineProperty(F,"skew",{get:ExpressionPropertyInterface(D.sk)}),Object.defineProperty(F,"skewAxis",{get:ExpressionPropertyInterface(D.sa)}),Object.defineProperty(F,"orientation",{get:ExpressionPropertyInterface(D.or)}),F},LayerExpressionInterface=function(){function D(rt){var Y=new Matrix;return void 0!==rt?this._elem.finalTransform.mProp.getValueAtTime(rt).clone(Y):this._elem.finalTransform.mProp.applyToMatrix(Y),Y}function F(rt,Y){var K=this.getMatrix(Y);return K.props[12]=0,K.props[13]=0,K.props[14]=0,this.applyPoint(K,rt)}function B(rt,Y){var K=this.getMatrix(Y);return this.applyPoint(K,rt)}function O(rt,Y){var K=this.getMatrix(Y);return K.props[12]=0,K.props[13]=0,K.props[14]=0,this.invertPoint(K,rt)}function G(rt,Y){var K=this.getMatrix(Y);return this.invertPoint(K,rt)}function j(rt,Y){if(this._elem.hierarchy&&this._elem.hierarchy.length){var K,et=this._elem.hierarchy.length;for(K=0;K<et;K+=1)this._elem.hierarchy[K].finalTransform.mProp.applyToMatrix(rt)}return rt.applyToPointArray(Y[0],Y[1],Y[2]||0)}function q(rt,Y){if(this._elem.hierarchy&&this._elem.hierarchy.length){var K,et=this._elem.hierarchy.length;for(K=0;K<et;K+=1)this._elem.hierarchy[K].finalTransform.mProp.applyToMatrix(rt)}return rt.inversePoint(Y)}function W(rt){var Y=new Matrix;if(Y.reset(),this._elem.finalTransform.mProp.applyToMatrix(Y),this._elem.hierarchy&&this._elem.hierarchy.length){var K,et=this._elem.hierarchy.length;for(K=0;K<et;K+=1)this._elem.hierarchy[K].finalTransform.mProp.applyToMatrix(Y);return Y.inversePoint(rt)}return Y.inversePoint(rt)}function Z(){return[1,1,1,1]}return function(rt){var Y;function K(tt){switch(tt){case"ADBE Root Vectors Group":case"Contents":case 2:return K.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return Y;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return K.effect;case"ADBE Text Properties":return K.textInterface;default:return null}}K.getMatrix=D,K.invertPoint=q,K.applyPoint=j,K.toWorld=B,K.toWorldVec=F,K.fromWorld=G,K.fromWorldVec=O,K.toComp=B,K.fromComp=W,K.sampleImage=Z,K.sourceRectAtTime=rt.sourceRectAtTime.bind(rt),K._elem=rt;var et=getDescriptor(Y=TransformExpressionInterface(rt.finalTransform.mProp),"anchorPoint");return Object.defineProperties(K,{hasParent:{get:function(){return rt.hierarchy.length}},parent:{get:function(){return rt.hierarchy[0].layerInterface}},rotation:getDescriptor(Y,"rotation"),scale:getDescriptor(Y,"scale"),position:getDescriptor(Y,"position"),opacity:getDescriptor(Y,"opacity"),anchorPoint:et,anchor_point:et,transform:{get:function(){return Y}},active:{get:function(){return rt.isInRange}}}),K.startTime=rt.data.st,K.index=rt.data.ind,K.source=rt.data.refId,K.height=0===rt.data.ty?rt.data.h:100,K.width=0===rt.data.ty?rt.data.w:100,K.inPoint=rt.data.ip/rt.comp.globalData.frameRate,K.outPoint=rt.data.op/rt.comp.globalData.frameRate,K._name=rt.data.nm,K.registerMaskInterface=function(tt){K.mask=new MaskManagerInterface(tt,rt)},K.registerEffectsInterface=function(tt){K.effect=tt},K}}(),propertyGroupFactory=function(D,F){return function(B){return(B=void 0===B?1:B)<=0?D:F(B-1)}},PropertyInterface=function(D,F){var B={_name:D};return function(O){return(O=void 0===O?1:O)<=0?B:F(O-1)}},EffectsExpressionInterface=function(){function F(O,G,j,q){function W(et){for(var tt=O.ef,J=0,U=tt.length;J<U;){if(et===tt[J].nm||et===tt[J].mn||et===tt[J].ix)return 5===tt[J].ty?Y[J]:Y[J]();J+=1}throw new Error}var Z,rt=propertyGroupFactory(W,j),Y=[],K=O.ef.length;for(Z=0;Z<K;Z+=1)Y.push(5===O.ef[Z].ty?F(O.ef[Z],G.effectElements[Z],G.effectElements[Z].propertyGroup,q):B(G.effectElements[Z],O.ef[Z].ty,q,rt));return"ADBE Color Control"===O.mn&&Object.defineProperty(W,"color",{get:function(){return Y[0]()}}),Object.defineProperties(W,{numProperties:{get:function(){return O.np}},_name:{value:O.nm},propertyGroup:{value:rt}}),W.active=W.enabled=0!==O.en,W}function B(O,G,j,q){var W=ExpressionPropertyInterface(O.p);return O.p.setGroupProperty&&O.p.setGroupProperty(PropertyInterface("",q)),function(){return 10===G?j.comp.compInterface(O.p.v):W()}}return{createEffectsInterface:function(O,G){if(O.effectsManager){var j,q=[],W=O.data.ef,Z=O.effectsManager.effectElements.length;for(j=0;j<Z;j+=1)q.push(F(W[j],O.effectsManager.effectElements[j],G,O));var rt=O.data.ef||[],Y=function(K){for(j=0,Z=rt.length;j<Z;){if(K===rt[j].nm||K===rt[j].mn||K===rt[j].ix)return q[j];j+=1}return null};return Object.defineProperty(Y,"numProperties",{get:function(){return rt.length}}),Y}return null}}}(),ShapePathInterface=function(D,F,B){var O=F.sh;function G(q){return"Shape"===q||"shape"===q||"Path"===q||"path"===q||"ADBE Vector Shape"===q||2===q?G.path:null}var j=propertyGroupFactory(G,B);return O.setGroupProperty(PropertyInterface("Path",j)),Object.defineProperties(G,{path:{get:function(){return O.k&&O.getValue(),O}},shape:{get:function(){return O.k&&O.getValue(),O}},_name:{value:D.nm},ix:{value:D.ix},propertyIndex:{value:D.ix},mn:{value:D.mn},propertyGroup:{value:B}}),G},ShapeExpressionInterface=function(){function D(et,tt,J){var U,X=[],Q=et?et.length:0;for(U=0;U<Q;U+=1)"gr"===et[U].ty?X.push(F(et[U],tt[U],J)):"fl"===et[U].ty?X.push(B(et[U],tt[U],J)):"st"===et[U].ty?X.push(G(et[U],tt[U],J)):"tm"===et[U].ty?X.push(j(et[U],tt[U],J)):"tr"===et[U].ty||X.push("el"===et[U].ty?W(et[U],tt[U],J):"sr"===et[U].ty?Z(et[U],tt[U],J):"sh"===et[U].ty?ShapePathInterface(et[U],tt[U],J):"rc"===et[U].ty?rt(et[U],tt[U],J):"rd"===et[U].ty?Y(et[U],tt[U],J):"rp"===et[U].ty?K(et[U],tt[U],J):"gf"===et[U].ty?O(et[U],tt[U],J):function(){return null});return X}function F(et,tt,J){var U=function(it){switch(it){case"ADBE Vectors Group":case"Contents":case 2:return U.content;default:return U.transform}};U.propertyGroup=propertyGroupFactory(U,J);var X=function(it,at,st){var ot,ft=function(lt){for(var ut=0,ct=ot.length;ut<ct;){if(ot[ut]._name===lt||ot[ut].mn===lt||ot[ut].propertyIndex===lt||ot[ut].ix===lt||ot[ut].ind===lt)return ot[ut];ut+=1}return"number"==typeof lt?ot[lt-1]:null};ft.propertyGroup=propertyGroupFactory(ft,st),ot=D(it.it,at.it,ft.propertyGroup),ft.numProperties=ot.length;var pt=q(it.it[it.it.length-1],at.it[at.it.length-1],ft.propertyGroup);return ft.transform=pt,ft.propertyIndex=it.cix,ft._name=it.nm,ft}(et,tt,U.propertyGroup),Q=q(et.it[et.it.length-1],tt.it[tt.it.length-1],U.propertyGroup);return U.content=X,U.transform=Q,Object.defineProperty(U,"_name",{get:function(){return et.nm}}),U.numProperties=et.np,U.propertyIndex=et.ix,U.nm=et.nm,U.mn=et.mn,U}function B(et,tt,J){function U(X){return"Color"===X||"color"===X?U.color:"Opacity"===X||"opacity"===X?U.opacity:null}return Object.defineProperties(U,{color:{get:ExpressionPropertyInterface(tt.c)},opacity:{get:ExpressionPropertyInterface(tt.o)},_name:{value:et.nm},mn:{value:et.mn}}),tt.c.setGroupProperty(PropertyInterface("Color",J)),tt.o.setGroupProperty(PropertyInterface("Opacity",J)),U}function O(et,tt,J){function U(X){return"Start Point"===X||"start point"===X?U.startPoint:"End Point"===X||"end point"===X?U.endPoint:"Opacity"===X||"opacity"===X?U.opacity:null}return Object.defineProperties(U,{startPoint:{get:ExpressionPropertyInterface(tt.s)},endPoint:{get:ExpressionPropertyInterface(tt.e)},opacity:{get:ExpressionPropertyInterface(tt.o)},type:{get:function(){return"a"}},_name:{value:et.nm},mn:{value:et.mn}}),tt.s.setGroupProperty(PropertyInterface("Start Point",J)),tt.e.setGroupProperty(PropertyInterface("End Point",J)),tt.o.setGroupProperty(PropertyInterface("Opacity",J)),U}function G(et,tt,J){var U,ft,X=propertyGroupFactory(ot,J),Q=propertyGroupFactory(st,X),at=et.d?et.d.length:0,st={};for(U=0;U<at;U+=1)ft=U,Object.defineProperty(st,et.d[ft].nm,{get:ExpressionPropertyInterface(tt.d.dataProps[ft].p)}),tt.d.dataProps[U].p.setGroupProperty(Q);function ot(ft){return"Color"===ft||"color"===ft?ot.color:"Opacity"===ft||"opacity"===ft?ot.opacity:"Stroke Width"===ft||"stroke width"===ft?ot.strokeWidth:null}return Object.defineProperties(ot,{color:{get:ExpressionPropertyInterface(tt.c)},opacity:{get:ExpressionPropertyInterface(tt.o)},strokeWidth:{get:ExpressionPropertyInterface(tt.w)},dash:{get:function(){return st}},_name:{value:et.nm},mn:{value:et.mn}}),tt.c.setGroupProperty(PropertyInterface("Color",X)),tt.o.setGroupProperty(PropertyInterface("Opacity",X)),tt.w.setGroupProperty(PropertyInterface("Stroke Width",X)),ot}function j(et,tt,J){function U(Q){return Q===et.e.ix||"End"===Q||"end"===Q?U.end:Q===et.s.ix?U.start:Q===et.o.ix?U.offset:null}var X=propertyGroupFactory(U,J);return U.propertyIndex=et.ix,tt.s.setGroupProperty(PropertyInterface("Start",X)),tt.e.setGroupProperty(PropertyInterface("End",X)),tt.o.setGroupProperty(PropertyInterface("Offset",X)),U.propertyIndex=et.ix,U.propertyGroup=J,Object.defineProperties(U,{start:{get:ExpressionPropertyInterface(tt.s)},end:{get:ExpressionPropertyInterface(tt.e)},offset:{get:ExpressionPropertyInterface(tt.o)},_name:{value:et.nm}}),U.mn=et.mn,U}function q(et,tt,J){function U(Q){return et.a.ix===Q||"Anchor Point"===Q?U.anchorPoint:et.o.ix===Q||"Opacity"===Q?U.opacity:et.p.ix===Q||"Position"===Q?U.position:et.r.ix===Q||"Rotation"===Q||"ADBE Vector Rotation"===Q?U.rotation:et.s.ix===Q||"Scale"===Q?U.scale:et.sk&&et.sk.ix===Q||"Skew"===Q?U.skew:et.sa&&et.sa.ix===Q||"Skew Axis"===Q?U.skewAxis:null}var X=propertyGroupFactory(U,J);return tt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",X)),tt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",X)),tt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",X)),tt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",X)),tt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",X)),tt.transform.mProps.sk&&(tt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",X)),tt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",X))),tt.transform.op.setGroupProperty(PropertyInterface("Opacity",X)),Object.defineProperties(U,{opacity:{get:ExpressionPropertyInterface(tt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(tt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(tt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(tt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(tt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(tt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(tt.transform.mProps.sa)},_name:{value:et.nm}}),U.ty="tr",U.mn=et.mn,U.propertyGroup=J,U}function W(et,tt,J){function U(it){return et.p.ix===it?U.position:et.s.ix===it?U.size:null}var X=propertyGroupFactory(U,J);U.propertyIndex=et.ix;var Q="tm"===tt.sh.ty?tt.sh.prop:tt.sh;return Q.s.setGroupProperty(PropertyInterface("Size",X)),Q.p.setGroupProperty(PropertyInterface("Position",X)),Object.defineProperties(U,{size:{get:ExpressionPropertyInterface(Q.s)},position:{get:ExpressionPropertyInterface(Q.p)},_name:{value:et.nm}}),U.mn=et.mn,U}function Z(et,tt,J){function U(it){return et.p.ix===it?U.position:et.r.ix===it?U.rotation:et.pt.ix===it?U.points:et.or.ix===it||"ADBE Vector Star Outer Radius"===it?U.outerRadius:et.os.ix===it?U.outerRoundness:!et.ir||et.ir.ix!==it&&"ADBE Vector Star Inner Radius"!==it?et.is&&et.is.ix===it?U.innerRoundness:null:U.innerRadius}var X=propertyGroupFactory(U,J),Q="tm"===tt.sh.ty?tt.sh.prop:tt.sh;return U.propertyIndex=et.ix,Q.or.setGroupProperty(PropertyInterface("Outer Radius",X)),Q.os.setGroupProperty(PropertyInterface("Outer Roundness",X)),Q.pt.setGroupProperty(PropertyInterface("Points",X)),Q.p.setGroupProperty(PropertyInterface("Position",X)),Q.r.setGroupProperty(PropertyInterface("Rotation",X)),et.ir&&(Q.ir.setGroupProperty(PropertyInterface("Inner Radius",X)),Q.is.setGroupProperty(PropertyInterface("Inner Roundness",X))),Object.defineProperties(U,{position:{get:ExpressionPropertyInterface(Q.p)},rotation:{get:ExpressionPropertyInterface(Q.r)},points:{get:ExpressionPropertyInterface(Q.pt)},outerRadius:{get:ExpressionPropertyInterface(Q.or)},outerRoundness:{get:ExpressionPropertyInterface(Q.os)},innerRadius:{get:ExpressionPropertyInterface(Q.ir)},innerRoundness:{get:ExpressionPropertyInterface(Q.is)},_name:{value:et.nm}}),U.mn=et.mn,U}function rt(et,tt,J){function U(it){return et.p.ix===it?U.position:et.r.ix===it?U.roundness:et.s.ix===it||"Size"===it||"ADBE Vector Rect Size"===it?U.size:null}var X=propertyGroupFactory(U,J),Q="tm"===tt.sh.ty?tt.sh.prop:tt.sh;return U.propertyIndex=et.ix,Q.p.setGroupProperty(PropertyInterface("Position",X)),Q.s.setGroupProperty(PropertyInterface("Size",X)),Q.r.setGroupProperty(PropertyInterface("Rotation",X)),Object.defineProperties(U,{position:{get:ExpressionPropertyInterface(Q.p)},roundness:{get:ExpressionPropertyInterface(Q.r)},size:{get:ExpressionPropertyInterface(Q.s)},_name:{value:et.nm}}),U.mn=et.mn,U}function Y(et,tt,J){function U(it){return et.r.ix===it||"Round Corners 1"===it?U.radius:null}var X=propertyGroupFactory(U,J),Q=tt;return U.propertyIndex=et.ix,Q.rd.setGroupProperty(PropertyInterface("Radius",X)),Object.defineProperties(U,{radius:{get:ExpressionPropertyInterface(Q.rd)},_name:{value:et.nm}}),U.mn=et.mn,U}function K(et,tt,J){function U(it){return et.c.ix===it||"Copies"===it?U.copies:et.o.ix===it||"Offset"===it?U.offset:null}var X=propertyGroupFactory(U,J),Q=tt;return U.propertyIndex=et.ix,Q.c.setGroupProperty(PropertyInterface("Copies",X)),Q.o.setGroupProperty(PropertyInterface("Offset",X)),Object.defineProperties(U,{copies:{get:ExpressionPropertyInterface(Q.c)},offset:{get:ExpressionPropertyInterface(Q.o)},_name:{value:et.nm}}),U.mn=et.mn,U}return function(et,tt,J){var U;function X(Q){if("number"==typeof Q)return 0===(Q=void 0===Q?1:Q)?J:U[Q-1];for(var it=0,at=U.length;it<at;){if(U[it]._name===Q)return U[it];it+=1}return null}return X.propertyGroup=propertyGroupFactory(X,function(){return J}),U=D(et,tt,X.propertyGroup),X.numProperties=U.length,X._name="Contents",X}}(),TextExpressionInterface=function(D){var F,B;function O(G){return"ADBE Text Document"===G?O.sourceText:null}return Object.defineProperty(O,"sourceText",{get:function(){D.textProperty.getValue();var G=D.textProperty.currentData.t;return G!==F&&(D.textProperty.currentData.t=F,(B=new String(G)).value=G||new String(G)),B}}),O};function _typeof$2(D){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_typeof$2(D)}var FootageInterface=(dataInterfaceFactory=function(D){function F(B){return"Outline"===B?F.outlineInterface():null}return F._name="Outline",F.outlineInterface=function(B){var O="",G=B.getFootageData();function j(q){if(G[q])return O=q,"object"===_typeof$2(G=G[q])?j:G;var W=q.indexOf(O);if(-1!==W){var Z=parseInt(q.substr(W+O.length),10);return"object"===_typeof$2(G=G[Z])?j:G}return""}return function(){return O="",G=B.getFootageData(),j}}(D),F},function(D){function F(B){return"Data"===B?F.dataInterface:null}return F._name="Data",F.dataInterface=dataInterfaceFactory(D),F}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(D){return interfaces[D]||null}function _typeof$1(D){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_typeof$1(D)}function seedRandom(D,F){var B=this,O=256,G=F.pow(O,6),j=F.pow(2,52),q=2*j,W=255;function Z(tt){var J,U=tt.length,X=this,Q=0,it=X.i=X.j=0,at=X.S=[];for(U||(tt=[U++]);Q<O;)at[Q]=Q++;for(Q=0;Q<O;Q++)at[Q]=at[it=W&it+tt[Q%U]+(J=at[Q])],at[it]=J;X.g=function(st){for(var ot,ft=0,pt=X.i,lt=X.j,ut=X.S;st--;)ot=ut[pt=W&pt+1],ft=ft*O+ut[W&(ut[pt]=ut[lt=W&lt+ot])+(ut[lt]=ot)];return X.i=pt,X.j=lt,ft}}function rt(tt,J){return J.i=tt.i,J.j=tt.j,J.S=tt.S.slice(),J}function Y(tt,J){var U,X=[],Q=_typeof$1(tt);if(J&&"object"==Q)for(U in tt)try{X.push(Y(tt[U],J-1))}catch{}return X.length?X:"string"==Q?tt:tt+"\0"}function K(tt,J){for(var U,X=tt+"",Q=0;Q<X.length;)J[W&Q]=W&(U^=19*J[W&Q])+X.charCodeAt(Q++);return et(J)}function et(tt){return String.fromCharCode.apply(0,tt)}F.seedrandom=function(tt,J,U){var X=[],Q=K(Y((J=!0===J?{entropy:!0}:J||{}).entropy?[tt,et(D)]:null===tt?function(){try{var st=new Uint8Array(O);return(B.crypto||B.msCrypto).getRandomValues(st),et(st)}catch{var ot=B.navigator,ft=ot&&ot.plugins;return[+new Date,B,ft,B.screen,et(D)]}}():tt,3),X),it=new Z(X),at=function(){for(var st=it.g(6),ot=G,ft=0;st<j;)st=(st+ft)*O,ot*=O,ft=it.g(1);for(;st>=q;)st/=2,ot/=2,ft>>>=1;return(st+ft)/ot};return at.int32=function(){return 0|it.g(4)},at.quick=function(){return it.g(4)/4294967296},at.double=at,K(et(it.S),D),(J.pass||U||function(st,ot,ft,pt){return pt&&(pt.S&&rt(pt,it),st.state=function(){return rt(it,{})}),ft?(F.random=st,ot):st})(at,Q,"global"in J?J.global:this==F,J.state)},K(F.random(),D)}function initialize$2(D){seedRandom([],D)}var propTypes={SHAPE:"shape"};function _typeof(D){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_typeof(D)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(D){return D.constructor===Array||D.constructor===Float32Array}function isNumerable(D,F){return"number"===D||"boolean"===D||"string"===D||F instanceof Number}function $bm_neg(D){var F=_typeof(D);if("number"===F||"boolean"===F||D instanceof Number)return-D;if($bm_isInstanceOfArray(D)){var B,O=D.length,G=[];for(B=0;B<O;B+=1)G[B]=-D[B];return G}return D.propType?D.v:-D}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(D,F){var B=_typeof(D),O=_typeof(F);if("string"===B||"string"===O||isNumerable(B,D)&&isNumerable(O,F))return D+F;if($bm_isInstanceOfArray(D)&&isNumerable(O,F))return(D=D.slice(0))[0]+=F,D;if(isNumerable(B,D)&&$bm_isInstanceOfArray(F))return(F=F.slice(0))[0]=D+F[0],F;if($bm_isInstanceOfArray(D)&&$bm_isInstanceOfArray(F)){for(var G=0,j=D.length,q=F.length,W=[];G<j||G<q;)W[G]=("number"==typeof D[G]||D[G]instanceof Number)&&("number"==typeof F[G]||F[G]instanceof Number)?D[G]+F[G]:void 0===F[G]?D[G]:D[G]||F[G],G+=1;return W}return 0}var add=sum;function sub(D,F){var B=_typeof(D),O=_typeof(F);if(isNumerable(B,D)&&isNumerable(O,F))return"string"===B&&(D=parseInt(D,10)),"string"===O&&(F=parseInt(F,10)),D-F;if($bm_isInstanceOfArray(D)&&isNumerable(O,F))return(D=D.slice(0))[0]-=F,D;if(isNumerable(B,D)&&$bm_isInstanceOfArray(F))return(F=F.slice(0))[0]=D-F[0],F;if($bm_isInstanceOfArray(D)&&$bm_isInstanceOfArray(F)){for(var G=0,j=D.length,q=F.length,W=[];G<j||G<q;)W[G]=("number"==typeof D[G]||D[G]instanceof Number)&&("number"==typeof F[G]||F[G]instanceof Number)?D[G]-F[G]:void 0===F[G]?D[G]:D[G]||F[G],G+=1;return W}return 0}function mul(D,F){var B,O,G,j=_typeof(D),q=_typeof(F);if(isNumerable(j,D)&&isNumerable(q,F))return D*F;if($bm_isInstanceOfArray(D)&&isNumerable(q,F)){for(B=createTypedArray("float32",G=D.length),O=0;O<G;O+=1)B[O]=D[O]*F;return B}if(isNumerable(j,D)&&$bm_isInstanceOfArray(F)){for(B=createTypedArray("float32",G=F.length),O=0;O<G;O+=1)B[O]=D*F[O];return B}return 0}function div(D,F){var B,O,G,j=_typeof(D),q=_typeof(F);if(isNumerable(j,D)&&isNumerable(q,F))return D/F;if($bm_isInstanceOfArray(D)&&isNumerable(q,F)){for(B=createTypedArray("float32",G=D.length),O=0;O<G;O+=1)B[O]=D[O]/F;return B}if(isNumerable(j,D)&&$bm_isInstanceOfArray(F)){for(B=createTypedArray("float32",G=F.length),O=0;O<G;O+=1)B[O]=D/F[O];return B}return 0}function mod(D,F){return"string"==typeof D&&(D=parseInt(D,10)),"string"==typeof F&&(F=parseInt(F,10)),D%F}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(D,F,B){if(F>B){var O=B;B=F,F=O}return Math.min(Math.max(D,F),B)}function radiansToDegrees(D){return D/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(D){return D*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(D,F){if("number"==typeof D||D instanceof Number)return Math.abs(D-(F=F||0));var B;F||(F=helperLengthArray);var O=Math.min(D.length,F.length),G=0;for(B=0;B<O;B+=1)G+=Math.pow(F[B]-D[B],2);return Math.sqrt(G)}function normalize(D){return div(D,length(D))}function rgbToHsl(D){var F,B,O=D[0],G=D[1],j=D[2],q=Math.max(O,G,j),W=Math.min(O,G,j),Z=(q+W)/2;if(q===W)F=0,B=0;else{var rt=q-W;switch(B=Z>.5?rt/(2-q-W):rt/(q+W),q){case O:F=(G-j)/rt+(G<j?6:0);break;case G:F=(j-O)/rt+2;break;case j:F=(O-G)/rt+4}F/=6}return[F,B,Z,D[3]]}function hue2rgb(D,F,B){return B<0&&(B+=1),B>1&&(B-=1),B<1/6?D+6*(F-D)*B:B<.5?F:B<2/3?D+(F-D)*(2/3-B)*6:D}function hslToRgb(D){var F,B,O,G=D[0],j=D[1],q=D[2];if(0===j)F=q,O=q,B=q;else{var W=q<.5?q*(1+j):q+j-q*j,Z=2*q-W;F=hue2rgb(Z,W,G+1/3),B=hue2rgb(Z,W,G),O=hue2rgb(Z,W,G-1/3)}return[F,B,O,D[3]]}function linear(D,F,B,O,G){if(void 0!==O&&void 0!==G||(O=F,G=B,F=0,B=1),B<F){var j=B;B=F,F=j}if(D<=F)return O;if(D>=B)return G;var q,W=B===F?0:(D-F)/(B-F);if(!O.length)return O+(G-O)*W;var Z=O.length,rt=createTypedArray("float32",Z);for(q=0;q<Z;q+=1)rt[q]=O[q]+(G[q]-O[q])*W;return rt}function random(D,F){if(void 0===F&&(void 0===D?(D=0,F=1):(F=D,D=void 0)),F.length){var B,O=F.length;D||(D=createTypedArray("float32",O));var G=createTypedArray("float32",O),j=BMMath.random();for(B=0;B<O;B+=1)G[B]=D[B]+j*(F[B]-D[B]);return G}return void 0===D&&(D=0),D+BMMath.random()*(F-D)}function createPath(D,F,B,O){var G,j=D.length,q=shapePool.newElement();q.setPathData(!!O,j);var W,Z,rt=[0,0];for(G=0;G<j;G+=1)q.setTripleAt(D[G][0],D[G][1],(Z=B&&B[G]?B[G]:rt)[0]+D[G][0],Z[1]+D[G][1],(W=F&&F[G]?F[G]:rt)[0]+D[G][0],W[1]+D[G][1],G,!0);return q}function initiateExpression(elem,data,property){function noOp(D){return D}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(D,F){var B,O,G=this.pv.length?this.pv.length:1,j=createTypedArray("float32",G),q=Math.floor(5*time);for(B=0,O=0;B<q;){for(O=0;O<G;O+=1)j[O]+=-F+2*F*BMMath.random();B+=1}var W=5*time,Z=W-Math.floor(W),rt=createTypedArray("float32",G);if(G>1){for(O=0;O<G;O+=1)rt[O]=this.pv[O]+j[O]+(-F+2*F*BMMath.random())*Z;return rt}return this.pv+j[0]+(-F+2*F*BMMath.random())*Z}.bind(this);function loopInDuration(D,F){return loopIn(D,F,!0)}function loopOutDuration(D,F){return loopOut(D,F,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(D,F){var B=[F[0]-D[0],F[1]-D[1],F[2]-D[2]],O=Math.atan2(B[0],Math.sqrt(B[1]*B[1]+B[2]*B[2]))/degToRads;return[-Math.atan2(B[1],B[2])/degToRads,O,0]}function easeOut(D,F,B,O,G){return applyEase(easeOutBez,D,F,B,O,G)}function easeIn(D,F,B,O,G){return applyEase(easeInBez,D,F,B,O,G)}function ease(D,F,B,O,G){return applyEase(easeInOutBez,D,F,B,O,G)}function applyEase(D,F,B,O,G,j){void 0===G?(G=B,j=O):F=(F-B)/(O-B),F>1?F=1:F<0&&(F=0);var q=D(F);if($bm_isInstanceOfArray(G)){var W,Z=G.length,rt=createTypedArray("float32",Z);for(W=0;W<Z;W+=1)rt[W]=(j[W]-G[W])*q+G[W];return rt}return(j-G)*q+G}function nearestKey(D){var F,B,O,G=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(B=-1,(D*=elem.comp.globalData.frameRate)<data.k[0].t)B=1,O=data.k[0].t;else{for(F=0;F<G-1;F+=1){if(D===data.k[F].t){B=F+1,O=data.k[F].t;break}if(D>data.k[F].t&&D<data.k[F+1].t){D-data.k[F].t>data.k[F+1].t-D?(B=F+2,O=data.k[F+1].t):(B=F+1,O=data.k[F].t);break}}-1===B&&(B=F+1,O=data.k[F].t)}else B=0,O=0;var j={};return j.index=B,j.time=O/elem.comp.globalData.frameRate,j}function key(D){var F,B,O;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+D);F={time:data.k[D-=1].t/elem.comp.globalData.frameRate,value:[]};var G=Object.prototype.hasOwnProperty.call(data.k[D],"s")?data.k[D].s:data.k[D-1].e;for(O=G.length,B=0;B<O;B+=1)F[B]=G[B],F.value[B]=G[B];return F}function framesToTime(D,F){return F||(F=elem.comp.globalData.frameRate),D/F}function timeToFrames(D,F){return D||0===D||(D=time),F||(F=elem.comp.globalData.frameRate),D*F}function seedRandom(D){BMMath.seedrandom(randSeed+D)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(D,F){return"string"==typeof value?void 0===F?value.substring(D):value.substring(D,F):""}function substr(D,F){return"string"==typeof value?void 0===F?value.substr(D):value.substr(D,F):""}function posterizeTime(D){time=0===D?0:Math.floor(time*D)/D,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(D){return value=D,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisComp=elem.comp.compInterface,toWorld=(thisLayer=elem.layerInterface).toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(D,F,B){F.x&&(B.k=!0,B.x=!0,B.initiateExpression=ExpressionManager.initiateExpression,B.effectsSequence.push(B.initiateExpression(D,F,B).bind(B)))},getSpeedAtTime:function(D){var F=this.getValueAtTime(D),B=this.getValueAtTime(D+-.01),O=0;if(F.length){var G;for(G=0;G<F.length;G+=1)O+=Math.pow(B[G]-F[G],2);O=100*Math.sqrt(O)}else O=0;return O},getVelocityAtTime:function(D){if(void 0!==this.vel)return this.vel;var F,B,O=-.001,G=this.getValueAtTime(D),j=this.getValueAtTime(D+O);if(G.length)for(F=createTypedArray("float32",G.length),B=0;B<G.length;B+=1)F[B]=(j[B]-G[B])/O;else F=(j-G)/O;return F},getValueAtTime:function(D){return D*=this.elem.globalData.frameRate,(D-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<D?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(D,this._cachingAtTime),this._cachingAtTime.lastFrame=D),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(D){this.propertyGroup=D}};function addPropertyDecorator(){function D(K,et,tt){if(!this.k||!this.keyframes)return this.pv;K=K?K.toLowerCase():"";var J,U,X,Q,it,at=this.comp.renderedFrame,st=this.keyframes,ot=st[st.length-1].t;if(at<=ot)return this.pv;if(tt?U=ot-(J=et?Math.abs(ot-this.elem.comp.globalData.frameRate*et):Math.max(0,ot-this.elem.data.ip)):((!et||et>st.length-1)&&(et=st.length-1),J=ot-(U=st[st.length-1-et].t)),"pingpong"===K){if(Math.floor((at-U)/J)%2!=0)return this.getValueAtTime((J-(at-U)%J+U)/this.comp.globalData.frameRate,0)}else{if("offset"===K){var ft=this.getValueAtTime(U/this.comp.globalData.frameRate,0),pt=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),lt=this.getValueAtTime(((at-U)%J+U)/this.comp.globalData.frameRate,0),ut=Math.floor((at-U)/J);if(this.pv.length){for(Q=(it=new Array(ft.length)).length,X=0;X<Q;X+=1)it[X]=(pt[X]-ft[X])*ut+lt[X];return it}return(pt-ft)*ut+lt}if("continue"===K){var ct=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),nt=this.getValueAtTime((ot-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Q=(it=new Array(ct.length)).length,X=0;X<Q;X+=1)it[X]=ct[X]+(at-ot)/this.comp.globalData.frameRate*(ct[X]-nt[X])/5e-4;return it}return ct+(at-ot)/.001*(ct-nt)}}return this.getValueAtTime(((at-U)%J+U)/this.comp.globalData.frameRate,0)}function F(K,et,tt){if(!this.k)return this.pv;K=K?K.toLowerCase():"";var J,U,X,Q,it,at=this.comp.renderedFrame,st=this.keyframes,ot=st[0].t;if(at>=ot)return this.pv;if(tt?U=ot+(J=et?Math.abs(this.elem.comp.globalData.frameRate*et):Math.max(0,this.elem.data.op-ot)):((!et||et>st.length-1)&&(et=st.length-1),J=(U=st[et].t)-ot),"pingpong"===K){if(Math.floor((ot-at)/J)%2==0)return this.getValueAtTime(((ot-at)%J+ot)/this.comp.globalData.frameRate,0)}else{if("offset"===K){var ft=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),pt=this.getValueAtTime(U/this.comp.globalData.frameRate,0),lt=this.getValueAtTime((J-(ot-at)%J+ot)/this.comp.globalData.frameRate,0),ut=Math.floor((ot-at)/J)+1;if(this.pv.length){for(Q=(it=new Array(ft.length)).length,X=0;X<Q;X+=1)it[X]=lt[X]-(pt[X]-ft[X])*ut;return it}return lt-(pt-ft)*ut}if("continue"===K){var ct=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),nt=this.getValueAtTime((ot+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Q=(it=new Array(ct.length)).length,X=0;X<Q;X+=1)it[X]=ct[X]+(ct[X]-nt[X])*(ot-at)/.001;return it}return ct+(ct-nt)*(ot-at)/.001}}return this.getValueAtTime((J-((ot-at)%J+ot))/this.comp.globalData.frameRate,0)}function B(K,et){if(!this.k)return this.pv;if(K=.5*(K||.4),(et=Math.floor(et||5))<=1)return this.pv;var tt,J,U=this.comp.renderedFrame/this.comp.globalData.frameRate,X=U-K,Q=et>1?(U+K-X)/(et-1):1,it=0,at=0;for(tt=this.pv.length?createTypedArray("float32",this.pv.length):0;it<et;){if(J=this.getValueAtTime(X+it*Q),this.pv.length)for(at=0;at<this.pv.length;at+=1)tt[at]+=J[at];else tt+=J;it+=1}if(this.pv.length)for(at=0;at<this.pv.length;at+=1)tt[at]/=et;else tt/=et;return tt}function O(K){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var et=this._transformCachingAtTime.v;if(et.cloneFromProps(this.pre.props),this.appliedTransformations<1){var tt=this.a.getValueAtTime(K);et.translate(-tt[0]*this.a.mult,-tt[1]*this.a.mult,tt[2]*this.a.mult)}if(this.appliedTransformations<2){var J=this.s.getValueAtTime(K);et.scale(J[0]*this.s.mult,J[1]*this.s.mult,J[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var U=this.sk.getValueAtTime(K),X=this.sa.getValueAtTime(K);et.skewFromAxis(-U*this.sk.mult,X*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Q=this.r.getValueAtTime(K);et.rotate(-Q*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var it=this.rz.getValueAtTime(K),at=this.ry.getValueAtTime(K),st=this.rx.getValueAtTime(K),ot=this.or.getValueAtTime(K);et.rotateZ(-it*this.rz.mult).rotateY(at*this.ry.mult).rotateX(st*this.rx.mult).rotateZ(-ot[2]*this.or.mult).rotateY(ot[1]*this.or.mult).rotateX(ot[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ft=this.px.getValueAtTime(K),pt=this.py.getValueAtTime(K);if(this.data.p.z){var lt=this.pz.getValueAtTime(K);et.translate(ft*this.px.mult,pt*this.py.mult,-lt*this.pz.mult)}else et.translate(ft*this.px.mult,pt*this.py.mult,0)}else{var ut=this.p.getValueAtTime(K);et.translate(ut[0]*this.p.mult,ut[1]*this.p.mult,-ut[2]*this.p.mult)}return et}function G(){return this.v.clone(new Matrix)}var j=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(K,et,tt){var J=j(K,et,tt);return J.getValueAtTime=J.dynamicProperties.length?O.bind(J):G.bind(J),J.setGroupProperty=expressionHelpers.setGroupProperty,J};var q=PropertyFactory.getProp;PropertyFactory.getProp=function(K,et,tt,J,U){var X=q(K,et,tt,J,U);X.getValueAtTime=X.kf?expressionHelpers.getValueAtTime.bind(X):expressionHelpers.getStaticValueAtTime.bind(X),X.setGroupProperty=expressionHelpers.setGroupProperty,X.loopOut=D,X.loopIn=F,X.smooth=B,X.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(X),X.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(X),X.numKeys=1===et.a?et.k.length:0,X.propertyIndex=et.ix;var Q=0;return 0!==tt&&(Q=createTypedArray("float32",1===et.a?et.k[0].s.length:et.k.length)),X._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Q},expressionHelpers.searchExpressions(K,et,X),X.k&&U.addDynamicProperty(X),X};var W=ShapePropertyFactory.getConstructorFunction(),Z=ShapePropertyFactory.getKeyframedConstructorFunction();function rt(){}rt.prototype={vertices:function(K,et){this.k&&this.getValue();var tt,J=this.v;void 0!==et&&(J=this.getValueAtTime(et,0));var U=J._length,X=J[K],Q=J.v,it=createSizedArray(U);for(tt=0;tt<U;tt+=1)it[tt]="i"===K||"o"===K?[X[tt][0]-Q[tt][0],X[tt][1]-Q[tt][1]]:[X[tt][0],X[tt][1]];return it},points:function(K){return this.vertices("v",K)},inTangents:function(K){return this.vertices("i",K)},outTangents:function(K){return this.vertices("o",K)},isClosed:function(){return this.v.c},pointOnPath:function(K,et){var tt=this.v;void 0!==et&&(tt=this.getValueAtTime(et,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(tt));for(var J,U=this._segmentsLength,X=U.lengths,Q=U.totalLength*K,it=0,at=X.length,st=0;it<at;){if(st+X[it].addedLength>Q){var ft=tt.c&&it===at-1?0:it+1;J=bez.getPointInSegment(tt.v[it],tt.v[ft],tt.o[it],tt.i[ft],(Q-st)/X[it].addedLength,X[it]);break}st+=X[it].addedLength,it+=1}return J||(J=tt.c?[tt.v[0][0],tt.v[0][1]]:[tt.v[tt._length-1][0],tt.v[tt._length-1][1]]),J},vectorOnPath:function(K,et,tt){1==K?K=this.v.c:0==K&&(K=.999);var J=this.pointOnPath(K,et),U=this.pointOnPath(K+.001,et),X=U[0]-J[0],Q=U[1]-J[1],it=Math.sqrt(Math.pow(X,2)+Math.pow(Q,2));return 0===it?[0,0]:"tangent"===tt?[X/it,Q/it]:[-Q/it,X/it]},tangentOnPath:function(K,et){return this.vectorOnPath(K,et,"tangent")},normalOnPath:function(K,et){return this.vectorOnPath(K,et,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([rt],W),extendPrototype([rt],Z),Z.prototype.getValueAtTime=function(K){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),K*=this.elem.globalData.frameRate,(K-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<K?this._caching.lastIndex:0,this._cachingAtTime.lastTime=K,this.interpolateShape(K,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},Z.prototype.initiateExpression=ExpressionManager.initiateExpression;var Y=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(K,et,tt,J,U){var X=Y(K,et,tt,J,U);return X.propertyIndex=et.ix,X.lock=!1,3===tt?expressionHelpers.searchExpressions(K,et.pt,X):4===tt&&expressionHelpers.searchExpressions(K,et.ks,X),X.k&&K.addDynamicProperty(X),X}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(D,F){var B=this.calculateExpression(F);if(D.t!==B){var O={};return this.copyData(O,D),O.t=B.toString(),O.__complete=!1,O}return D},TextProperty.prototype.searchProperty=function(){var D=this.searchKeyframes(),F=this.searchExpressions();return this.kf=D||F,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(D,F,B,O,G){this.filterManager=F;var j=createNS("feColorMatrix");j.setAttribute("type","matrix"),j.setAttribute("color-interpolation-filters","linearRGB"),j.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),j.setAttribute("result",O+"_tint_1"),D.appendChild(j),(j=createNS("feColorMatrix")).setAttribute("type","matrix"),j.setAttribute("color-interpolation-filters","sRGB"),j.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),j.setAttribute("result",O+"_tint_2"),D.appendChild(j),this.matrixFilter=j;var q=this.createMergeNode(O,[G,O+"_tint_1",O+"_tint_2"]);D.appendChild(q)}function SVGFillFilter(D,F,B,O){this.filterManager=F;var G=createNS("feColorMatrix");G.setAttribute("type","matrix"),G.setAttribute("color-interpolation-filters","sRGB"),G.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),G.setAttribute("result",O),D.appendChild(G),this.matrixFilter=G}function SVGStrokeEffect(D,F,B){this.initialized=!1,this.filterManager=F,this.elem=B,this.paths=[]}function SVGTritoneFilter(D,F,B,O){this.filterManager=F;var G=createNS("feColorMatrix");G.setAttribute("type","matrix"),G.setAttribute("color-interpolation-filters","linearRGB"),G.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),D.appendChild(G);var j=createNS("feComponentTransfer");j.setAttribute("color-interpolation-filters","sRGB"),j.setAttribute("result",O),this.matrixFilter=j;var q=createNS("feFuncR");q.setAttribute("type","table"),j.appendChild(q),this.feFuncR=q;var W=createNS("feFuncG");W.setAttribute("type","table"),j.appendChild(W),this.feFuncG=W;var Z=createNS("feFuncB");Z.setAttribute("type","table"),j.appendChild(Z),this.feFuncB=Z,D.appendChild(j)}function SVGProLevelsFilter(D,F,B,O){this.filterManager=F;var G=this.filterManager.effectElements,j=createNS("feComponentTransfer");(G[10].p.k||0!==G[10].p.v||G[11].p.k||1!==G[11].p.v||G[12].p.k||1!==G[12].p.v||G[13].p.k||0!==G[13].p.v||G[14].p.k||1!==G[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",j)),(G[17].p.k||0!==G[17].p.v||G[18].p.k||1!==G[18].p.v||G[19].p.k||1!==G[19].p.v||G[20].p.k||0!==G[20].p.v||G[21].p.k||1!==G[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",j)),(G[24].p.k||0!==G[24].p.v||G[25].p.k||1!==G[25].p.v||G[26].p.k||1!==G[26].p.v||G[27].p.k||0!==G[27].p.v||G[28].p.k||1!==G[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",j)),(G[31].p.k||0!==G[31].p.v||G[32].p.k||1!==G[32].p.v||G[33].p.k||1!==G[33].p.v||G[34].p.k||0!==G[34].p.v||G[35].p.k||1!==G[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",j)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(j.setAttribute("color-interpolation-filters","sRGB"),D.appendChild(j)),(G[3].p.k||0!==G[3].p.v||G[4].p.k||1!==G[4].p.v||G[5].p.k||1!==G[5].p.v||G[6].p.k||0!==G[6].p.v||G[7].p.k||1!==G[7].p.v)&&((j=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),j.setAttribute("result",O),D.appendChild(j),this.feFuncRComposed=this.createFeFunc("feFuncR",j),this.feFuncGComposed=this.createFeFunc("feFuncG",j),this.feFuncBComposed=this.createFeFunc("feFuncB",j))}function SVGDropShadowEffect(D,F,B,O,G){var j=F.container.globalData.renderConfig.filterSize,q=F.data.fs||j;D.setAttribute("x",q.x||j.x),D.setAttribute("y",q.y||j.y),D.setAttribute("width",q.width||j.width),D.setAttribute("height",q.height||j.height),this.filterManager=F;var W=createNS("feGaussianBlur");W.setAttribute("in","SourceAlpha"),W.setAttribute("result",O+"_drop_shadow_1"),W.setAttribute("stdDeviation","0"),this.feGaussianBlur=W,D.appendChild(W);var Z=createNS("feOffset");Z.setAttribute("dx","25"),Z.setAttribute("dy","0"),Z.setAttribute("in",O+"_drop_shadow_1"),Z.setAttribute("result",O+"_drop_shadow_2"),this.feOffset=Z,D.appendChild(Z);var rt=createNS("feFlood");rt.setAttribute("flood-color","#00ff00"),rt.setAttribute("flood-opacity","1"),rt.setAttribute("result",O+"_drop_shadow_3"),this.feFlood=rt,D.appendChild(rt);var Y=createNS("feComposite");Y.setAttribute("in",O+"_drop_shadow_3"),Y.setAttribute("in2",O+"_drop_shadow_2"),Y.setAttribute("operator","in"),Y.setAttribute("result",O+"_drop_shadow_4"),D.appendChild(Y);var K=this.createMergeNode(O,[O+"_drop_shadow_4",G]);D.appendChild(K)}SVGComposableEffect.prototype={createMergeNode:function(D,F){var B,O,G=createNS("feMerge");for(G.setAttribute("result",D),O=0;O<F.length;O+=1)(B=createNS("feMergeNode")).setAttribute("in",F[O]),G.appendChild(B),G.appendChild(B);return G}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){var F=this.filterManager.effectElements[0].p.v,B=this.filterManager.effectElements[1].p.v;this.matrixFilter.setAttribute("values",B[0]-F[0]+" 0 0 0 "+F[0]+" "+(B[1]-F[1])+" 0 0 0 "+F[1]+" "+(B[2]-F[2])+" 0 0 0 "+F[2]+" 0 0 0 "+this.filterManager.effectElements[2].p.v/100+" 0")}},SVGFillFilter.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){var F=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+F[0]+" 0 0 0 0 "+F[1]+" 0 0 0 0 "+F[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var D,F,B,O,G=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(O=this.elem.maskManager.masksProperties.length,B=0):O=1+(B=this.filterManager.effectElements[0].p.v-1),(F=createNS("g")).setAttribute("fill","none"),F.setAttribute("stroke-linecap","round"),F.setAttribute("stroke-dashoffset",1);B<O;B+=1)D=createNS("path"),F.appendChild(D),this.paths.push({p:D,m:B});if(3===this.filterManager.effectElements[10].p.v){var j=createNS("mask"),q=createElementID();j.setAttribute("id",q),j.setAttribute("mask-type","alpha"),j.appendChild(F),this.elem.globalData.defs.appendChild(j);var W=createNS("g");for(W.setAttribute("mask","url("+getLocationHref()+"#"+q+")");G[0];)W.appendChild(G[0]);this.elem.layerElement.appendChild(W),this.masker=j,F.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(G=this.elem.layerElement.children||this.elem.layerElement.childNodes;G.length;)this.elem.layerElement.removeChild(G[0]);this.elem.layerElement.appendChild(F),this.elem.layerElement.removeAttribute("mask"),F.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=F},SVGStrokeEffect.prototype.renderFrame=function(D){var F;this.initialized||this.initialize();var B,O,G=this.paths.length;for(F=0;F<G;F+=1)if(-1!==this.paths[F].m&&(B=this.elem.maskManager.viewData[this.paths[F].m],O=this.paths[F].p,(D||this.filterManager._mdf||B.prop._mdf)&&O.setAttribute("d",B.lastPath),D||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||B.prop._mdf)){var j;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var q=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),W=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),Z=O.getTotalLength();j="0 0 0 "+Z*q+" ";var rt,et=Math.floor(Z*(W-q)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(rt=0;rt<et;rt+=1)j+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";j+="0 "+10*Z+" 0 0"}else j="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;O.setAttribute("stroke-dasharray",j)}if((D||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(D||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(D||this.filterManager.effectElements[3].p._mdf)){var tt=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*tt[0])+","+bmFloor(255*tt[1])+","+bmFloor(255*tt[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){var F=this.filterManager.effectElements[0].p.v,B=this.filterManager.effectElements[1].p.v,O=this.filterManager.effectElements[2].p.v,j=O[1]+" "+B[1]+" "+F[1],q=O[2]+" "+B[2]+" "+F[2];this.feFuncR.setAttribute("tableValues",O[0]+" "+B[0]+" "+F[0]),this.feFuncG.setAttribute("tableValues",j),this.feFuncB.setAttribute("tableValues",q)}},SVGProLevelsFilter.prototype.createFeFunc=function(D,F){var B=createNS(D);return B.setAttribute("type","table"),F.appendChild(B),B},SVGProLevelsFilter.prototype.getTableValue=function(D,F,B,O,G){for(var j,q,W=0,Z=Math.min(D,F),rt=Math.max(D,F),Y=Array.call(null,{length:256}),K=0,et=G-O,tt=F-D;W<=256;)q=(j=W/256)<=Z?tt<0?G:O:j>=rt?tt<0?O:G:O+et*Math.pow((j-D)/tt,1/B),Y[K]=q,K+=1,W+=256/255;return Y.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){var F,B=this.filterManager.effectElements;this.feFuncRComposed&&(D||B[3].p._mdf||B[4].p._mdf||B[5].p._mdf||B[6].p._mdf||B[7].p._mdf)&&(F=this.getTableValue(B[3].p.v,B[4].p.v,B[5].p.v,B[6].p.v,B[7].p.v),this.feFuncRComposed.setAttribute("tableValues",F),this.feFuncGComposed.setAttribute("tableValues",F),this.feFuncBComposed.setAttribute("tableValues",F)),this.feFuncR&&(D||B[10].p._mdf||B[11].p._mdf||B[12].p._mdf||B[13].p._mdf||B[14].p._mdf)&&(F=this.getTableValue(B[10].p.v,B[11].p.v,B[12].p.v,B[13].p.v,B[14].p.v),this.feFuncR.setAttribute("tableValues",F)),this.feFuncG&&(D||B[17].p._mdf||B[18].p._mdf||B[19].p._mdf||B[20].p._mdf||B[21].p._mdf)&&(F=this.getTableValue(B[17].p.v,B[18].p.v,B[19].p.v,B[20].p.v,B[21].p.v),this.feFuncG.setAttribute("tableValues",F)),this.feFuncB&&(D||B[24].p._mdf||B[25].p._mdf||B[26].p._mdf||B[27].p._mdf||B[28].p._mdf)&&(F=this.getTableValue(B[24].p.v,B[25].p.v,B[26].p.v,B[27].p.v,B[28].p.v),this.feFuncB.setAttribute("tableValues",F)),this.feFuncA&&(D||B[31].p._mdf||B[32].p._mdf||B[33].p._mdf||B[34].p._mdf||B[35].p._mdf)&&(F=this.getTableValue(B[31].p.v,B[32].p.v,B[33].p.v,B[34].p.v,B[35].p.v),this.feFuncA.setAttribute("tableValues",F))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){if((D||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),D||this.filterManager.effectElements[0].p._mdf){var F=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*F[0]),Math.round(255*F[1]),Math.round(255*F[2])))}if((D||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),D||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var B=this.filterManager.effectElements[3].p.v,O=(this.filterManager.effectElements[2].p.v-90)*degToRads,G=B*Math.cos(O),j=B*Math.sin(O);this.feOffset.setAttribute("dx",G),this.feOffset.setAttribute("dy",j)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(D,F,B){this.initialized=!1,this.filterManager=F,this.filterElem=D,this.elem=B,B.matteElement=createNS("g"),B.matteElement.appendChild(B.layerElement),B.matteElement.appendChild(B.transformedElement),B.baseElement=B.matteElement}function SVGGaussianBlurEffect(D,F,B,O){D.setAttribute("x","-100%"),D.setAttribute("y","-100%"),D.setAttribute("width","300%"),D.setAttribute("height","300%"),this.filterManager=F;var G=createNS("feGaussianBlur");G.setAttribute("result",O),D.appendChild(G),this.feGaussianBlur=G}return SVGMatte3Effect.prototype.findSymbol=function(D){for(var F=0,B=_svgMatteSymbols.length;F<B;){if(_svgMatteSymbols[F]===D)return _svgMatteSymbols[F];F+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(D,F){var B=D.layerElement.parentNode;if(B){for(var O,G=B.children,j=0,q=G.length;j<q&&G[j]!==D.layerElement;)j+=1;j<=q-2&&(O=G[j+1]);var W=createNS("use");W.setAttribute("href","#"+F),O?B.insertBefore(W,O):B.appendChild(W)}},SVGMatte3Effect.prototype.setElementAsMask=function(D,F){if(!this.findSymbol(F)){var B=createElementID(),O=createNS("mask");O.setAttribute("id",F.layerId),O.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(F);var G=D.globalData.defs;G.appendChild(O);var j=createNS("symbol");j.setAttribute("id",B),this.replaceInParent(F,B),j.appendChild(F.layerElement),G.appendChild(j);var q=createNS("use");q.setAttribute("href","#"+B),O.appendChild(q),F.data.hd=!1,F.show()}D.setMatte(F.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var D=this.filterManager.effectElements[0].p.v,F=this.elem.comp.elements,B=0,O=F.length;B<O;)F[B]&&F[B].data.ind===D&&this.setElementAsMask(this.elem,F[B]),B+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(D){if(D||this.filterManager._mdf){var F=.3*this.filterManager.effectElements[0].p.v,B=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==B?0:F)+" "+(2==B?0:F)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports,_templateObject$1,styles=r$3(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral(["\n  * {\n    box-sizing: border-box;\n  }\n\n  :host {\n    --lottie-player-toolbar-height: 35px;\n    --lottie-player-toolbar-background-color: transparent;\n    --lottie-player-toolbar-icon-color: #999;\n    --lottie-player-toolbar-icon-hover-color: #222;\n    --lottie-player-toolbar-icon-active-color: #555;\n    --lottie-player-seeker-track-color: #ccc;\n    --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n    --lottie-player-seeker-display: block;\n\n    display: block;\n    width: 100%;\n    height: 100%;\n  }\n\n  .main {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n    width: 100%;\n  }\n\n  .animation {\n    width: 100%;\n    height: 100%;\n    display: flex;\n  }\n  .animation.controls {\n    height: calc(100% - 35px);\n  }\n\n  .toolbar {\n    display: flex;\n    align-items: center;\n    justify-items: center;\n    background-color: var(--lottie-player-toolbar-background-color);\n    margin: 0 5px;\n    height: 35px;\n  }\n\n  .toolbar button {\n    cursor: pointer;\n    fill: var(--lottie-player-toolbar-icon-color);\n    display: flex;\n    background: none;\n    border: 0;\n    padding: 0;\n    outline: none;\n    height: 100%;\n  }\n\n  .toolbar button:hover {\n    fill: var(--lottie-player-toolbar-icon-hover-color);\n  }\n\n  .toolbar button.active {\n    fill: var(--lottie-player-toolbar-icon-active-color);\n  }\n\n  .toolbar button.active:hover {\n    fill: var(--lottie-player-toolbar-icon-hover-color);\n  }\n\n  .toolbar button:focus {\n    outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);\n  }\n\n  .toolbar button svg {\n  }\n\n  .toolbar button.disabled svg {\n    display: none;\n  }\n\n  .seeker {\n    -webkit-appearance: none;\n    width: 95%;\n    outline: none;\n    background-color: var(--lottie-player-toolbar-background-color);\n    display: var(--lottie-player-seeker-display);\n  }\n\n  .seeker::-webkit-slider-runnable-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-webkit-slider-thumb {\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n    -webkit-appearance: none;\n    margin-top: -5px;\n  }\n  .seeker:focus::-webkit-slider-runnable-track {\n    background: #999;\n  }\n  .seeker::-moz-range-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-moz-range-thumb {\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n  }\n  .seeker::-ms-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: transparent;\n    border-color: transparent;\n    color: transparent;\n  }\n  .seeker::-ms-fill-lower {\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-ms-fill-upper {\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-ms-thumb {\n    border: 0;\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n  }\n  .seeker:focus::-ms-fill-lower {\n    background: var(--lottie-player-seeker-track-color);\n  }\n  .seeker:focus::-ms-fill-upper {\n    background: var(--lottie-player-seeker-track-color);\n  }\n\n  .error {\n    display: flex;\n    justify-content: center;\n    height: 100%;\n    align-items: center;\n  }\n"]))),LOTTIE_PLAYER_VERSION="1.7.1",LOTTIE_WEB_VERSION="^5.10.0",_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;function parseSrc(D){if("object"==typeof D)return D;try{return JSON.parse(D)}catch{return new URL(D,window.location.href).toString()}}function isLottie(D){return["v","ip","op","layers","fr","w","h"].every(F=>Object.prototype.hasOwnProperty.call(D,F))}function fromURL(D){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL=_asyncToGenerator(function*(D){if("string"!=typeof D)throw new Error("The url value must be a string");var F;try{var B=new URL(D),O=yield fetch(B.toString());F=yield O.json()}catch{throw new Error("An error occurred while trying to load the Lottie file from URL")}return F})).apply(this,arguments)}exports.PlayerState=void 0,PlayerState=exports.PlayerState||(exports.PlayerState={}),PlayerState.Destroyed="destroyed",PlayerState.Error="error",PlayerState.Frozen="frozen",PlayerState.Loading="loading",PlayerState.Paused="paused",PlayerState.Playing="playing",PlayerState.Stopped="stopped",exports.PlayMode=void 0,PlayMode=exports.PlayMode||(exports.PlayMode={}),PlayMode.Bounce="bounce",PlayMode.Normal="normal",exports.PlayerEvents=void 0,PlayerEvents=exports.PlayerEvents||(exports.PlayerEvents={}),PlayerEvents.Complete="complete",PlayerEvents.Destroyed="destroyed",PlayerEvents.Error="error",PlayerEvents.Frame="frame",PlayerEvents.Freeze="freeze",PlayerEvents.Load="load",PlayerEvents.Loop="loop",PlayerEvents.Pause="pause",PlayerEvents.Play="play",PlayerEvents.Ready="ready",PlayerEvents.Rendered="rendered",PlayerEvents.Stop="stop",exports.LottiePlayer=class extends s{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=exports.PlayerState.Loading,this.description="Lottie animation",this.direction=1,this.disableCheck=!1,this.disableShadowDOM=!1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=exports.PlayMode.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1}load(D){var F=this;return _asyncToGenerator(function*(){var B={container:F.container,loop:!1,autoplay:!1,renderer:F.renderer,rendererSettings:Object.assign({preserveAspectRatio:F.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0},F.viewBoxSize&&{viewBoxSize:F.viewBoxSize})};try{var O=parseSrc(D),G={},j="string"==typeof O?"path":"animationData";F._lottie&&F._lottie.destroy(),F.webworkers&&lottie$1.exports.useWebWorker(!0),F._lottie=lottie$1.exports.loadAnimation(Object.assign(Object.assign({},B),{[j]:O})),F._attachEventListeners(),F.disableCheck||("path"===j?(G=yield fromURL(O),j="animationData"):G=O,isLottie(G)||(F.currentState=exports.PlayerState.Error,F.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))))}catch{F.currentState=exports.PlayerState.Error,F.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}})()}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:LOTTIE_PLAYER_VERSION}}play(){this._lottie&&(this._lottie.play(),this.currentState=exports.PlayerState.Playing,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Paused,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=exports.PlayerState.Stopped,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this._lottie=null,this.currentState=exports.PlayerState.Destroyed,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Destroyed)),this.remove())}seek(D){if(this._lottie){var F=/^(\d+)(%?)$/.exec(D.toString());if(F){var B="%"===F[2]?this._lottie.totalFrames*Number(F[1])/100:Number(F[1]);this.seeker=B,this.currentState===exports.PlayerState.Playing?this._lottie.goToAndPlay(B,!0):(this._lottie.goToAndStop(B,!0),this._lottie.pause())}}}snapshot(){var D=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.shadowRoot){var F=this.shadowRoot.querySelector(".animation svg"),B=(new XMLSerializer).serializeToString(F);if(D){var O=document.createElement("a");O.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(B)),O.download="download_".concat(this.seeker,".svg"),document.body.appendChild(O),O.click(),document.body.removeChild(O)}return B}}setSpeed(){this._lottie&&this._lottie.setSpeed(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}setDirection(D){this._lottie&&this._lottie.setDirection(D)}setLooping(D){this._lottie&&(this.loop=D,this._lottie.loop=D)}togglePlay(){return this.currentState===exports.PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return styles}disconnectedCallback(){this.isConnected||(this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this.destroy())}render(){var D=this.controls?"main controls":"main",F=this.controls?"animation controls":"animation";return $(_templateObject||(_templateObject=_taggedTemplateLiteral([' <div\n      id="animation-container"\n      class=','\n      lang="en"\n      aria-label=','\n      role="img"\n    >\n      <div\n        id="animation"\n        class=','\n        style="background:',';"\n      >\n        ',"\n      </div>\n      ","\n    </div>"])),D,this.description,F,this.background,this.currentState===exports.PlayerState.Error?$(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['<div class="error">\u26a0\ufe0f</div>']))):void 0,this.controls&&!this.disableShadowDOM?this.renderControls():void 0)}createRenderRoot(){return this.disableShadowDOM&&(this.style.display="block"),this.disableShadowDOM?this:super.createRenderRoot()}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(D=>{D[0].isIntersecting?this.currentState===exports.PlayerState.Frozen&&this.play():this.currentState===exports.PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Rendered))}renderControls(){var D=this.currentState===exports.PlayerState.Playing,F=this.currentState===exports.PlayerState.Paused,B=this.currentState===exports.PlayerState.Stopped;return $(_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n      <div\n        id="lottie-controls"\n        aria-label="lottie-animation-controls"\n        class="toolbar"\n      >\n        <button\n          id="lottie-play-button"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="play-pause"\n        >\n          ','\n        </button>\n        <button\n          id="lottie-stop-button"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="stop"\n        >\n          <svg width="24" height="24" aria-hidden="true" focusable="false">\n            <path d="M6 6h12v12H6V6z" />\n          </svg>\n        </button>\n        <input\n          id="lottie-seeker-input"\n          class="seeker"\n          type="range"\n          min="0"\n          step="1"\n          max="100"\n          .value=',"\n          @input=","\n          @mousedown=","\n          @mouseup=",'\n          aria-valuemin="1"\n          aria-valuemax="100"\n          role="slider"\n          aria-valuenow=','\n          tabindex="0"\n          aria-label="lottie-seek-input"\n        />\n        <button\n          id="lottie-loop-toggle"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="loop-toggle"\n        >\n          <svg width="24" height="24" aria-hidden="true" focusable="false">\n            <path\n              d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n            />\n          </svg>\n        </button>\n      </div>\n    '])),this.togglePlay,D||F?"active":"",$(D?_templateObject4||(_templateObject4=_taggedTemplateLiteral(['<svg\n                width="24"\n                height="24"\n                aria-hidden="true"\n                focusable="false"\n              >\n                <path\n                  d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"\n                />\n              </svg>'])):_templateObject5||(_templateObject5=_taggedTemplateLiteral(['<svg\n                width="24"\n                height="24"\n                aria-hidden="true"\n                focusable="false"\n              >\n                <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n              </svg>']))),this.stop,B?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===exports.PlayerState.Playing&&this.play()},this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===exports.PlayerState.Playing?this.freeze():this.currentState===exports.PlayerState.Frozen&&this.play()}_handleSeekChange(D){this._lottie&&!isNaN(D.target.value)&&this.seek(D.target.value/100*this._lottie.totalFrames)}_attachEventListeners(){this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===exports.PlayerState.Playing){if((!this.loop||this.count&&this._counter>=this.count)&&(this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)),this.mode!==exports.PlayMode.Bounce||0===this._lottie.currentFrame))return;this.mode===exports.PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(-1===this.direction?(this.seek("99%"),this.play()):(this._lottie.stop(),this._lottie.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(-1===this.direction&&this.seek("100%"),this.play()),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==exports.PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===exports.PlayerState.Playing&&this.stop()})}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}},__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0})],exports.LottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"count",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"currentState",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"description",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"disableCheck",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"disableShadowDOM",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"hover",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"intermission",void 0),__decorate([e$5({type:Boolean,reflect:!0})],exports.LottiePlayer.prototype,"loop",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"preserveAspectRatio",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"renderer",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"viewBoxSize",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"seeker",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"src",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"webworkers",void 0),__decorate([i(".animation")],exports.LottiePlayer.prototype,"container",void 0),exports.LottiePlayer=__decorate([n$1("lottie-player")],exports.LottiePlayer),exports.parseSrc=parseSrc,Object.defineProperty(exports,"__esModule",{value:!0})});